Matching system, method, apparatus, and program

ABSTRACT

A matching apparatus generates a random number and transmits second encrypted data obtained by performing an operation of first encrypted data of each of first values related to a first binary vector encrypted and the random number to a matching request apparatus; transmits third encrypted data obtained by performing an operation of the second encrypted data and elements of a matching target second binary vector; based on a second value related to the first binary vector encrypted with the encryption key, the encrypted data and the random number, generates and transmits encrypted data and transmits the generated data to a verification apparatus as a query; and determines whether a count number of mismatched elements between the second binary vector and the first binary vector is less than or equal to a predetermined number based on values obtained by decrypting the encrypted data in the query.

CROSS REFERENCE TO RELATED APPLICATION

The present invention is a National Stage of International Application No. PCT/JP2017/044769 filed Dec. 13, 2017, based upon and claims the benefit of the priority of Japanese patent application No. 2016-243709, filed on Dec. 15, 2016, the disclosure of which is incorporated herein in its entirety by reference thereto.

FIELD

The present invention relates to a matching system, a method, an apparatus, and a non-transitory medium storing program.

BACKGROUND

For example, services for managing data by using computer resources connected to communication networks, such as cloud computing services, are widely used. Since highly confidential data is managed in this kind of service, security of the data needs to be guaranteed. Research and development have been conducted on techniques for managing encrypted data and performing, for example, search or statistical processing on the encrypted data in a network environment. In addition, biometric authentication techniques have attracted attention. In these techniques, high-security authentication is realized by using biometric information (biometric feature(s)) extracted from a biometric characteristic such as veins.

In biometric authentication techniques, a template is created based on biometric information, and the created template is stored in a database as a credential. In the biometric authentication techniques, when authentication information created based on an authentication target biometric characteristic is similar to (or matches) a template stored in the database, the authentication target is accepted. In the biometric authentication technique, when the authentication information is not similar to (does not match) any one of templates, the authentication target is not accepted. Even when a plurality of items of authentication information are created from a single biometric characteristic, these items of authentication information do not necessarily identical to each other. However, by using a certain distance function, the distance between each pair of these items of authentication information is short. In contrast, when a plurality of items of authentication information are created from different biometric characteristics, a distance between each pair of items of authentication information is long. In the biometric authentication techniques, by using these properties, matching between the templates stored in the database and authentication information created by an authentication target is verified. For example, fingerprints, veins, etc. are examples of biometric characterostics and are considered as lifelong data. Leakage of biometric information to outside of the corresponding matching system results in a significant damage. Thus, confidentiality of biometric information needs to be guaranteed. Therefore, template-protection technique in which no biometric information is leaked to outside even if a template is leaked to outside of the corresponding matching system is important.

In addition, in a biometric authentication technique, as is the case with other authentication techniques, it is necessary to prevent a different person from impersonating a person whose authentication information has been registered (namely, “spoofing”). For example, an authentication scheme in which authentication succeeds with transmission of a specific value to a matching system, does not have sufficient resistance against spoofing. In addition, in an authentication technique, there is also a risk of eavesdropping (interception) of information being communicated. In an authentication technique, spoofing needs to be prevented even if information being communicated is eavesdropped. For example, an authentication scheme in which authentication succeeds with retransmitting data which was transmitted by a legitimate client before does not have sufficient resistance against spoofing.

For example, PTL 1 discloses a method and an apparatus that perform processing for: converting registered information of a user that has been encrypted by using an encryption algorithm capable of calculating a Hamming distance in an encrypted state so that a calculation result of a Hamming distance between the registered information and matching information that has been encrypted by using the encryption algorithm includes a Hamming distance between the matching information and the user and a Hamming distance between the matching information and another person different from the user; calculating a Hamming distance between an input matching information and the transformed registered information; and determining whether the input matching information is incorrect based on a comparison result between a predetermined threshold and the Hamming distance between the matching information and the user and the Hamming distance between the matching information and the another person different from the user included in the calculated Hamming distance.

In PTL 2, in a secure biometric authentication system and a secure tag search system using a homomorphic encryption, when vector data A=(a1, a2, . . . ) is encrypted by a homomorphic encryption, each component ai is encrypted to generate encrypted vector data E(A)=(E(a1), E(a2), . . . ), and a distance (for example, the Hamming distance) between the encrypted vector data E(A)=(E(a1), E(a2), . . . ) and encrypted vector data E(B)=(E(b1), E(b2), . . . ) is calculated with the encrypted data being kept in an encrypted state. PTL 2 states that, when each component of the vector data is encrypted by using a homomorphic encryption in this way, the encrypted vector data E(A)=(E(a1), E(a2), . . . ), E(B)=(E(b1), E(b2), . . . ), etc. result in a large size and a considerable amount of calculation time is needed for secure distance calculation. PTL 2 discloses a configuration of reducing both the size of the encrypted vector data and the time needed for the secure distance calculation.

PTL 3 discloses a method for easily canceling encrypted information in an encryption processing system using a homomorphic encryption. PTL 3 discloses a method including: acquiring a first polynomial by converting first data by using a first transformation polynomial; acquiring a second polynomial by converting a formula obtained based on a random number corresponding to the first data and second data by using a second transformation polynomial; acquiring a random polynomial by converting the random number by using at least one of the first and second transformation polynomials; encrypting the first polynomial, the second polynomial, and the random number polynomial by using a homomorphic encryption scheme to acquire the encrypted first polynomial, the encrypted second polynomial, and the encrypted random number polynomial; and performing matching between the first and second data by using the encrypted first polynomial, the encrypted second polynomial, and the encrypted random number polynomial.

In addition, PTL 4 discloses a technique using a more general homomorphic encryption scheme in a system in which intervention of a trusted third party is introduced.

In addition, PTL 5 discloses a technique in which a template size does not depend on a parameter having a width in an acceptable range and load on a third party is small. However, in this scheme, a distance between registered biometric information and matching target biometric information is revealed to the third person. A malicious third person can conduct an attack (a hill-climbing attack) by using the distance obtained in the matching processing.

In addition, NPL 1 proposes a scheme that satisfies all of the following three security properties, which are security against an attacker who colludes with a server and a user, security against an attacker who colludes with a decryptor and a user, and security against an eavesdropper who impersonates a user.

The following describes notation for an encryption algorithm, etc. used in the present description. First, public key encryption will be described. A public key encryption scheme is expressed by three algorithms (Gen, Enc, Dec) of key generation, encryption, and decryption.

Based on a security parameter 1{circumflex over ( )}κ, the key generation algorithm (which will be referred to as “Gen”) outputs a public key pk and a secret key sk based on a security parameter 1{circumflex over ( )}κ.

(pk,sk)←Gen(1{circumflex over ( )}κ)

On input of the public key pk and a plaintext m, the encryption algorithm (which will be referred to as “Enc”) outputs a ciphertext c.

c←Enc(pk,m)

On input of the secret key sk and the ciphertext c, the decryption algorithm (which will be referred to as “Dec”) outputs a decryption result m′.

m′←Dec(sk,c)

For example, when obvious from a context, pk and sk could be omitted in the present description, drawings, etc. Homomorphic encryption is public key encryption that enables, from ciphertexts of a plurality of plaintexts, calculation of a ciphertext corresponding to an operation result of the plaintexts. For example, “additive homomorphic encryption” enables, from ciphertexts Enc(m₁), Enc(m_(m)) of plaintexts m₁, . . . , m_(n), calculation of a ciphertext Enc(m₁+ . . . +m_(n)) corresponding to a sum of the plaintexts without using a secret key.

-   PTL 1: Japanese Patent Kokai Publication No. JP-2016-131335A -   PTL 2: Japanese Patent Kokai Publication No. JP-2014-126865A -   PTL 3: Japanese Patent Kokai Publication No. JP-2016-12111A -   PTL 4: International Publication No. 2014/185447 -   PTL 5: International Publication No. 2012/114452 -   NPL 1: Higo, Isshiki, Mori, Obana, “A Secure Biometric     Authentication Scheme with Small Information Disclosure”, Symposium     on Cryptography and Information Security (SCIS2016), 2016.

SUMMARY

The following gives analysis of the related technologies.

PTLs 2 and 3 have a problem in resistance against spoofing attacks by eavesdroppers. In addition, PTLs 2, 3, and 5 need somewhat homomorphic encryption or pairing calculation. The somewhat homomorphic encryption has problems in that the processing load for calculation is heavier than that of an additive homomorphic encryption and requires a stronger assumption, for example.

In addition, in the disclosure of NPL 1, the present inventors have found that, when biometric information is a binary vector (a binary code string), protection (resistance) against spoofing attacks by eavesdroppers, etc. needs to be improved. In addition, the present inventors have found a technique applicable to 1:N authentication, which will be proposed below.

A principal object of the present invention is to provide a matching system, a method, a matching apparatus, and a non-transitory medium, each enabling to avoid leakage, spoofing, etc. regarding matching between binary vectors and enhance security.

According to an aspect of the present invention, a matching system includes:

a matching apparatus that generates a random number, and

transmits encrypted data obtained by performing an operation of each of first values related to a first binary vector encrypted with an encryption key, and the random number, with each of the first values being kept in an encrypted state, or encrypted data obtained by encrypting the generated random number with the encryption key, to a matching request apparatus;

the matching request apparatus that performs an operation of the encrypted data transmitted from the matching apparatus and elements of a matching target second binary vector, with the encrypted data being kept in an encrypted state to generate and transmit encrypted data to the matching apparatus;

wherein the matching apparatus, based on a second value related to the first binary vector encrypted with the encryption key, the encrypted data transmitted from the matching request apparatus, and the random number, generates encrypted data or the encrypted data and auxiliary data, each thereof for use of verification of a mismatch degree between the second binary vector and the first binary vector, and transmits the generated data as a query to a verification apparatus; and

the verification apparatus that determines whether a count number of mismatched elements between the second binary vector and the first binary vector is less than or equal to a predetermined number, based on a decrypted value obtained by decrypting, with a decryption key, the encrypted data included in the query transmitted from the matching apparatus, or the decrypted value and the auxiliary data included in the query.

According to another aspect of the present invention, there is provided a matching method, including:

(a) by a matching apparatus, generating a random number and transmitting encrypted data obtained by performing an operation of each of first values related to a first binary vector encrypted with an encryption key, and the random number, with each of the first values being kept in an encrypted state, or encrypted data obtained by encrypting the generated random number with the encryption key, to a matching request apparatus;

(b) by the matching request apparatus, performing an operation of the encrypted data transmitted from the matching apparatus and elements of a matching target second binary vector, with the encrypted data being kept in an encrypted state to generate and transmitting encrypted data to the matching apparatus;

(c) by the matching apparatus, based on a second value related to the first binary vector encrypted with the encryption key, the encrypted data transmitted from the matching request apparatus, and the random number,

generating encrypted data or the encrypted data and auxiliary data, each thereof for use of verification of a mismatch degree between the second binary vector and the first binary vector, and transmitting the generated data as a query to a verification apparatus; and

(d) by the verification apparatus, determining whether a count number of mismatched elements between the second binary vector and the first binary vector is less than or equal to a predetermined number, based on a decrypted value obtained by decrypting, with a decryption key, the encrypted data included in the query transmitted from the matching apparatus, or the decrypted value and the auxiliary data included in the query.

According to another aspect of the present invention, there is provided a matching apparatus including:

means for generating a random number, and transmitting encrypted data obtained by performing an operation of each of first values related to a first binary vector encrypted with an encryption key, and the random number, with each of the first values being kept in an encrypted state, or encrypted data obtained by encrypting the generated random number with the encryption key, to a matching request apparatus;

means for receiving, from the matching request apparatus, encrypted data obtained by an operation of each element of a matching target second binary vector and the encrypted data, with the encrypted data being kept in an encrypted state;

means for generating, based on a second value related to the first binary vector encrypted with the encryption key, the encrypted data transmitted from the matching request apparatus, and the random number, encrypted data or the encrypted data and auxiliary data, each thereof for use of verification of a mismatch degree between the second binary vector and the first binary vector, and transmits the generated data as a query to a verification apparatus; and

means for receiving a verification result from the verification apparatus that determines whether a count number of mismatched elements between the second binary vector and the first binary vector is less than or equal to a predetermined number, based on a decrypted value obtained by decrypting, with a decryption key, the encrypted data included in the query transmitted from the matching apparatus, or the decrypted value and the auxiliary data.

According to still another aspect of the present invention, there is provided a program causing a computer of a matching apparatus to perform processing comprising

generating a random number, and transmitting encrypted data obtained by performing an operation of each of first values related to a first binary vector encrypted with an encryption key, and the random number, with each of the first values being kept in an encrypted state, or encrypted data obtained by encrypting the generated random number with the encryption key, to a matching request apparatus;

receiving, from the matching request apparatus, encrypted data obtained by an operation of each element of a matching target second binary vector and the encrypted data, with the encrypted data being kept in an encrypted state;

generating, based on a second value related to the first binary vector encrypted with the encryption key, the encrypted data transmitted from the matching request apparatus, and the random number, encrypted data or the encrypted data and auxiliary data, each thereof for use of verification of a mismatch degree between the second binary vector and the first binary vector, and transmits the generated data as a query to a verification apparatus; and

receiving a verification result from the verification apparatus that determines whether a count number of mismatched elements between the second binary vector and the first binary vector is less than or equal to a predetermined number, based on a decrypted value obtained by decrypting, with a decryption key, the encrypted data included in the query transmitted from the matching apparatus, or the decrypted value and the auxiliary data.

According to the present invention, there is provided a non-transitory computer-readable recording medium such as a semiconductor storage such as a computer-readable recording medium in which the above program is stored (for example, a RAM (random access memory), a ROM (read-only memory), or an EEPROM (electrically erasable and programmable ROM)), an HDD (hard disk drive), a CD (compact disc), or a DVD (digital versatile disc).

The present invention can avoid leakage of a binary vector, spoofing, etc. regarding matching between binary vectors and enhance security. Still other features and advantages of the present invention will become readily apparent to those skilled in this art from the following detailed description in conjunction with the accompanying drawings where only exemplary embodiments of the invention are shown and described, simply by way of illustration of the best mode contemplated of carrying out this invention. As will be realized, the invention is capable of other and different embodiments, and its several details are capable of modifications in various obvious respects, all without departing from the invention. Accordingly, the drawing and description are to be regarded as illustrative in nature, and not as restrictive.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a diagram illustrating a configuration according to an example embodiment of the present invention.

FIG. 2 is a diagram illustrating a comparative example.

FIG. 3 is a diagram illustrating an example of a problem (a spoofing attack) with the comparative example.

FIG. 4 is a diagram illustrating an operation sequence according to a first example embodiment of the present invention.

FIG. 5 is a diagram illustrating a configuration example according to the first example embodiment of the present invention.

FIG. 6 is a diagram illustrating a preparation phase according to the first example embodiment of the present invention.

FIG. 7 is a diagram illustrating a registration phase according to the first example embodiment of the present invention.

FIG. 8 is a diagram illustrating a matching phase according to the first example embodiment of the present invention.

FIG. 9 is a diagram illustrating an operation sequence according to variation 1 of the first example embodiment of the present invention.

FIG. 10 is a diagram illustrating an operation sequence according to variation 2 of the first example embodiment of the present invention.

FIG. 11 is a diagram illustrating a second example embodiment of the present invention.

FIG. 12 is a diagram illustrating a configuration example of a registration request apparatus according to the second example embodiment of the present invention.

FIG. 13 is a diagram illustrating a registration phase according to the second example embodiment of the present invention.

FIG. 14 is a diagram illustrating an operation sequence according to the second example embodiment of the present invention.

FIG. 15 is a diagram illustrating an operation sequence according to variation 1 of the second example embodiment of the present invention.

FIG. 16 is a diagram illustrating an operation sequence according to variation 2 of the second example embodiment of the present invention.

FIG. 17 is a diagram illustrating a configuration example of a matching apparatus according to variation 3 of the second example embodiment of the present invention.

FIG. 18 is a diagram illustrating a matching phase according to variation 3 of the second example embodiment of the present invention.

FIG. 19 is a diagram illustrating an operation sequence according to variation 3 of the second example embodiment of the present invention.

FIG. 20 is a diagram illustrating a configuration example according to a third example embodiment of the present invention.

FIG. 21 is a diagram illustrating a matching phase according to the third example embodiment of the present invention.

FIG. 22 is a diagram illustrating an operation sequence according to the third example embodiment of the present invention.

FIG. 23 is a diagram illustrating an operation sequence according to variation 1 of the third example embodiment of the present invention.

FIG. 24 is a diagram illustrating a configuration according to variation 2 of the third example embodiment of the present invention.

FIG. 25 is a diagram illustrating an operation sequence of a registration phase according to variation 2 of the third example embodiment of the present invention.

FIG. 26 is a diagram illustrating an operation sequence of a registration phase according to a fourth example embodiment of the present invention.

FIG. 27 is a diagram illustrating an operation sequence of a registration phase according to variation 1 of the fourth example embodiment of the present invention.

FIG. 28 is a diagram illustrating a configuration according to a fifth example embodiment of the present invention.

DETAILED DESCRIPTION

<Basic Mode>

FIG. 1 is a diagram illustrating a mode of the present invention. As illustrated in FIG. 1, in a matching system 100 according to a mode of the present invention, in response to a matching request from a matching request apparatus 120, a matching apparatus 140 generates a random number (for example, S in FIGS. 4, 9, 10, 14 to 16, and 19) and encrypted data (Enc(S(1−2x_(i)) in FIG. 4, etc. or Enc(SA₁) (i=1, . . . , n) in FIG. 14) by performing an operation of first evaluated values (for example, Enc(1−2x_(i)) (i=1, . . . , n) in FIGS. 4, 9, and 10 or Enc(A_(i)) in FIG. 14) related to a first binary vector (X=[x₁, . . . , x_(n)]) which is encrypted with an encryption key (a public key pk) and the random number (S), wherein the first evaluated values have been encrypted with an encryption key (a public key pk) and stored. The matching apparatus 140 transmits the encrypted data (Enc(S(1−2x_(i)) in FIG. 4, etc. or Enc(SA_(i)) (i=1, . . . , n) in FIG. 14) to the matching request apparatus 120.

In the case of 1: N authentication, in response to a matching request from the matching request apparatus 120, the matching apparatus 140 generates random numbers (for example, a_(i), b_(i), and r_(i) in FIG. 22, or a_(i) and b_(i) in FIG. 26), generates encrypted data (for example, Enc(b_(i)) (i=1, . . . , n) in FIG. 22 or 26) of one of the random numbers encrypted with the encryption key (public key pk) and transmits the encrypted data (for example, Enc(b_(i)) (i=1, . . . , n) in FIG. 22 or 26) to the matching request apparatus 120.

The matching request apparatus 120 generates encrypted data (for example, Enc(SΣ_(i) (1−2x_(i))y_(i)) in FIG. 4, etc. or Enc(SΣ_(i)A_(i)B₁) in FIG. 14, etc., in the case of 1: N authentication, Enc(b_(i) (2y_(i)−1)) (i=1, . . . , n) in FIG. 22 or 26) obtained by performing an operation of the encrypted data (for example, Enc(pk, S(1−2x_(i))) in FIG. 4, etc. or, in the case of 1:N authentication, Enc(SA_(i)) in FIG. 14 or Enc(b_(i)) (i=1, . . . , n) in FIG. 22 or 26) transmitted from the matching apparatus 140, with the encrypted data being kept in an encrypted state, and elements {y_(i)} (i=1, . . . , n) of a matching target second binary vector (Y=[i₁, . . . , y_(n)]), or operation results (for example, B, in FIG. 14) of the elements {y_(i)} (i=1, . . . , n) and transmits the generated encrypted data to the matching apparatus 140. It is noted that Σ_(i) denotes an operator for calculating a sum for i (there are cases in which i is omitted in the drawings).

Based on encrypted data (Enc(Σ_(i)x_(i)) in FIG. 4, etc. or in the case of 1: N authentication, Enc(2x_(i)−1) in FIG. 22) of second evaluated values related to the first binary vector (X=[x₁,]) encrypted with the encryption key (pk),

the encrypted data (for example, Enc(SΣ_(i) (1−2x_(i))y_(i)) in FIG. 4, etc. or Enc(S Σ_(i) A_(i)B_(i)) in FIG. 14, etc. or, in the case of 1:N authentication, Enc(b_(i) (2y_(i)−1)) in FIG. 22) transmitted from the matching request apparatus 120, and

the random number(s) (for example, S in FIGS. 4, 14, etc. or, in the case of 1: N authentication, a_(i), r_(i) in FIG. 22 or a_(i) in FIG. 26), the matching apparatus 140 generates, as a query to verify a degree of mismatch between the second binary vector and the first binary vector, encrypted data (for example, Enc(d_(H) (X, Y)) in FIGS. 4, 14, etc.) or encrypted data (for example, Enc(a_(i) (2x_(i)−1)) and Enc(b_(i)r_(i) (2y_(i)−1)) in FIG. 22 or Enc(a_(i) b_(i) (2x_(i)−1)(2y_(i)−1)) in FIG. 26) and auxiliary data (for example, hash values H(a_(i)b_(i)r_(i)) in FIG. 22 or hash values H(a_(i)b_(i)) in FIG. 26) in the case of 1:N authentication, and transmits the generated query to a verification apparatus 150.

Based on a value (d_(H) (X, Y)) obtained by decrypting the encrypted data (for example, Enc(d_(H) (X, Y)) in FIGS. 4, 19, etc.) included in the query from the matching apparatus 140 by using a decryption key (sk) or based on auxiliary data (for example, H(z_(a) z_(b)) in FIG. 22 or H(z_(i)) in FIG. 26) generated from values (for example, (z_(a), z_(b)) in FIG. 22 or z_(a) in FIG. 26) obtained by decrypting the encrypted data (for example, Enc(a_(i) (2x_(i)−1)) and Enc(b_(i)r_(i) (2y_(i)−1)) in FIG. 22 or Enc(a_(i) b_(i) (2x_(i)−1)(2y_(i)−1)) in FIG. 26) included in the query by using the decryption key (sk) and auxiliary data (for example, H(a_(i)b_(i)r_(i)) in FIG. 22 or H(a_(i)b_(i)) in FIG. 26) included in the query in the case of 1:N authentication,

the verification apparatus 150 determines whether a count number of mismatched elements between the second binary vector (Y) and the first binary vector (X) is less than or equal to a predetermined number. The verification apparatus 150 outputs a verification result (acceptance or rejection). The verification apparatus 150 may transmit the verification result (acceptance or rejection) to the matching apparatus 140 as a response to the query, and the matching apparatus 140 may transmit the verification result (acceptance or rejection) to the matching request apparatus 120.

A registration request apparatus 110 transmits at least one of encrypted data (Enc(x_(i)) (i=1, . . . , n)) of individual elements {x_(i)} (i=1, n) of the registration target first binary vector X and the first evaluated values (operation results) of the individual elements (for example, Enc(1−2x_(i)) (i=1, . . . , n) in FIGS. 4, 9, and 10 or Enc(A_(i)) in FIG. 14) to a storage apparatus 130. The storage apparatus 130 holds the registered data that has been encrypted. It is preferable that a public key encryption scheme having a homomorphic property regarding addition be used for the encryption key (public key) and the decryption key (secret key). Alternatively, a public key encryption scheme having a multiplicative homomorphic property may be used as the encryption scheme. Alternatively, a public key encryption scheme having a homomorphic property on addition and multiplication may be used, such as a somewhat homomorphic encryption scheme.

The registration request apparatus 110 and the matching request apparatus 120 may constitute a client for registration and a client for authentication, respectively. The registration and authentication clients may be integrally formed as a single unit (apparatus) that performs both the registration and matching. Alternatively, the registration and authentication clients may be separately formed as different units (apparatuses) that perform the registration and matching, respectively. The storage apparatus 130 and the matching apparatus 140 may be formed respectively as servers (a database server and an authentication server) that perform registration and matching processing in response to a request from a client. The storage apparatus 130 and the matching apparatus 140 may be integrally formed as a single server.

<First Mode>

According to a mode of the present invention, with reference to FIG. 4, the registration request apparatus 110 may transmit first encrypted data (first templates) (Enc(pk, (1−2x_(i)))) (i=1, . . . , n) obtained by encrypting first calculated values (1−2x_(i)) (i=1, . . . , n) related to individual elements {xi} (i=1, . . . , n) of a registration target n-dimensional first binary vector X=[x₁, . . . , x_(n)] by using additive homomorphic encryption with a public key (pk) and fifth encrypted data (a second template) (Enc(pk, Σ[i=1 to n]x_(i))) obtained by encrypting a second calculated value (E[i=1 to n] x_(i)) of the individual elements {xi} (i=1, . . . , n) by using the public key (pk) to the storage apparatus 130. The storage apparatus 130 holds the first and second templates as registered data. It is noted that the operator Σ[i=1 to n] denotes a summation operation from i=1 to i=n, namely,

Σ[i=1 to n]O(i)=O(1)+ . . . +O(n)

The matching apparatus 140 may generate, in response to a matching request from the matching request apparatus 120, a random number (S) and obtain second encrypted data (Enc(pk, S(1−2x_(i))), . . . , Enc(pk, S(1−2x_(n)))) by multiplying the first encrypted data (Enc(pk, (1 −2x_(i)))) (i=1, . . . , n) by the random number S through a scalar operation with the first encrypted data being kept in an encrypted state. The matching apparatus 140 may transmit the second encrypted data (Enc(pk, S(1−2x_(i))), . . . , Enc(pk, S(1−2x))) to the matching request apparatus 120.

The matching request apparatus 120 calculates third encrypted data (Enc(pk, SΣ[i=1 to n] (1−2x_(i))y_(i))), which is a sum of values obtained by multiplying the second encrypted data (Enc(pk, S(1−2x_(i))), . . . , Enc(pk, S(1−2x_(n)))) transmitted from the matching apparatus 140 by the individual elements {y_(i)}(i=1, . . . , n) of the registration target n-dimensional second binary vector Y=[y₁, . . . , y_(n)] through a scalar operation. The matching request apparatus 120 transmits the third encrypted data (Enc(pk, SΣ[i=1 to n] (1−2x_(i))_(Y),)) to the matching apparatus 140.

The matching apparatus 140 calculates the fourth encrypted data (Enc(pk, Σ[i=1 to n] (1−2x_(i))y_(i))) by removing the random number (S) from the third encrypted data (Enc(pk, SΣ[i=1 to n] (1−2x_(i))y_(i))) transmitted from the matching request apparatus 120. Specifically, the matching apparatus 140 calculates the fourth encrypted data (Enc(pk, Σ[i=1 to n] (1−2x_(i))y_(i))) by multiplying the third encrypted data by the reciprocal (S{circumflex over ( )}(−1)) of the random number (S) ({circumflex over ( )} denotes an exponentiation operator) through a scalar operation. As a result, the random number (S) is removed from the third encrypted data. The matching apparatus 140 obtains encrypted data (=Enc(pk, d_(H) (X, Y))=Enc(pk, (Σ[i=1 to n]x_(i))+(Σ[i=1 to n] (1−2x_(i))y_(i))) of the distance between the first and second binary vectors by adding the fourth encrypted data (Enc(pk, Σ[i=1 to n] (1−2x_(i))y_(i))) and the fifth encrypted data (Enc(pk, Σ[i=1 to n]x_(i))) registered in the storage apparatus 130 (homomorphic addition) with the encrypted data being kept in an encrypted state. Next, the matching apparatus 140 transmits the encrypted data (=Enc(pk, d_(H) (X, Y)) of the distance between the first and second binary vectors to the verification apparatus 150 as a query.

The verification apparatus 150 decrypts the encrypted data (Enc(pk, d_(H) (X, Y))) by using a secret key (sk) (Dec(sk, Enc(pk, d_(H) (X, Y)))). Next, the verification apparatus 150 outputs acceptance or rejection based on the comparison between the Hamming distance (d_(H) (X, Y)) between the first and second binary vectors obtained as a result of the decryption and a threshold t (d_(H) (X, Y))<=t).

<First Mode: Variation 1>

Alternatively, according to the mode of the present invention, with reference to FIG. 9, the registration request apparatus 110 transmits encrypted data Enc(pk, x_(i)), . . . , Enc(pk, x_(n)) obtained by encrypting the individual elements {x_(i)} (i=1, . . . , n) of the registration target first binary vector X=[x₁, . . . , x_(n)] by using the public key (pk) to the storage apparatus 130. The storage apparatus 130 calculates first calculated values (Enc(pk, S(1−2x_(i)))) (i=1, . . . , n) and a second calculated value (Enc(pk, Σ[i=1 to n]x_(i))) about the individual elements {x_(i)} of the first binary vector X with the encrypted data being kept in an encrypted state (Enc(pk, x_(i))) (i=1, . . . , n) of the individual elements {x_(i)} of the first binary vector X and holds the first calculated values and the second calculated value as first encrypted data (template) (Enc(pk, S(1−2x_(i))) (i=1, . . . , n)) and second encrypted data (template) (Enc(pk, Σ[i=1 to n]x_(i))), respectively.

The matching apparatus 140 generates, in response to a matching request from the matching request apparatus 120, a random number (S), and calculates third encrypted data (Enc(pk, S(1−2x_(i))), Enc(pk, S(1−2x_(n)))) by performing a scalar operation of the first encrypted data and the random number (S) with the first encrypted data being kept in an encrypted state. Next, the matching apparatus 140 transmits the third encrypted data to the matching request apparatus 120.

The matching request apparatus 120 calculates fourth encrypted data (Enc(pk, SΣ[i=1 to n] (1−2x_(i))y_(i))), which is a sum of values obtained by multiplying each element of the third encrypted data transmitted from the matching apparatus 140, with each element being kept in an encrypted state, by each element of the registration target second binary vector through a scalar operation. The matching request apparatus 120 transmits the fourth encrypted data to the matching apparatus 140. The subsequent processing of the matching apparatus 140 and the verification apparatus 150 is the same as that in the above first mode.

<First Mode: Variation 2>

Alternatively, according to the mode of the present invention, with reference to FIG. 10, the registration request apparatus 110 transmits encrypted data (Enc(pk, x1)), Enc(pk, xn)) obtained by encrypting individual elements of the registration target first binary vector by using the public key (pk) to the storage apparatus 130. The storage apparatus 130 holds the encrypted data of each element of the first binary vector.

The matching apparatus 140 calculates, in response to a matching request from the matching request apparatus 120, first encrypted data (Enc(pk, (1−2x₁)), . . . , Enc(pk, (1−2x_(n)))) and second encrypted data (Enc(pk, Σ[i=1 to n]x_(i))) of the first calculated values (1−2x_(i)) (i=1, n), and the second calculated value (Σ[i=1 to n] x_(i)) on individual elements {x_(i)} of the first binary vector with the encrypted data (Enc(pk, x_(i))) (i=1, . . . , n) of the individual elements {x_(i)} of the first binary vector being kept in an encrypted state. The matching apparatus 140 also generates a random number (S) and calculates the third encrypted data (Enc(pk, S(1−2x_(i))), Enc(pk, S(1−2x_(n)))) by performing a scalar operation of multiplication of the random number (S) to the first encrypted data (Enc(pk, (1−2x₁)), Enc(pk, (1−2x_(n))). Next, the matching apparatus 140 transmits the third encrypted data (Enc(pk, S(1 −2x₁)), . . . , Enc(pk, S(1−2x_(n)))) to the matching request apparatus 120.

The matching request apparatus 120 calculates the fourth encrypted data (Enc(pk, SΣ[i=1 to n] (1−2x_(i))y_(i))), which is a sum of values obtained by multiplying individual elements of the third encrypted data (Enc(pk, S(1−2x_(i)))) (i=1, . . . , n) transmitted from the matching apparatus 140 by individual elements {y_(i)} (i=1, . . . , n) of the matching target second binary vector Y=[y₁, . . . , y_(n)] using a scalar operation with the third encrypted data being kept in an encrypted state. Next, the matching request apparatus 120 transmits the fourth encrypted data (Enc(pk, SΣ[i=1 to n] (1−2x_(i))y_(i))) to the matching apparatus 140. The subsequent processing of the matching apparatus 140 and the verification apparatus 150 is the same as that in the above first mode.

<Second Mode>

According to a second mode of the present invention, a first transformation function f1 that is applied to a registration target n-dimensional binary vector X=[x₁, . . . , x_(n)] is preset in the registration request apparatus 110, and a second transformation function f2 that is applied to a matching target n-dimensional binary vector Y=[y₁, . . . , y_(n)] is preset in the matching request apparatus 120.

For example, the first transformation function f1 is given as,

A=f1(X)=FX+d

where A is an n-dimensional transformed value vector, F is an n×n transformation matrix in which a transformation coefficient {a_(i,j)} (i=1, n, j=1, n) is an element in i-th row and j-th column of the matrix, and d is an n-dimensional vector (offset) with transformation coefficients {a_(i,n+1)} (i=1, . . . , n).

For example, the second transformation function f2 is given as,

B=f2(Y)=EY

where B is an n-dimensional transformed value vector and E is an n×n transformation matrix in which a transformation coefficient {b_(i,j)} (i=1, n, j=1, n) is an element in i-th row and j-th column of the matrix. In the registration request apparatus 110, the first transformation function f1 may be implemented as a subroutine that uses the binary vector X as an input parameter and the transformed value vector A as an output parameter. In the matching request apparatus 120, the second transformation function f2 may be implemented as a subroutine that uses the binary vector Y as an input parameter and the transformed value vector B as an output parameter. The second mode will hereinafter be described with reference to FIG. 14.

The registration request apparatus 110 calculates the transformed value vector [A₁, . . . , A_(n)] by applying the first transformation function f1 to the registration target binary vector X.

[A ₁ , . . . ,A _(n)]^(T) =f1[x _(i) ,x]^(T)

where superscript T is a transpose operator.

The registration request apparatus 110 generates, as first templates, encrypted data Enc(pk, A₁), . . . , Enc(pk, A_(n)) by encrypting the first transformed values A_(i) (i=1, . . . , n) by using a public key (pk). The registration request apparatus 110 transmits the encrypted data Enc(pk, A₁), . . . , Enc(pk, A_(n)) to the storage apparatus 130. In addition, the registration request apparatus 110 also transmits encrypted data (Enc(pk, x₁), . . . , Enc(pk, x_(n))) obtained by encrypting individual elements {x_(i)} (i=1, . . . , n) of the first binary vector X=[x₁, . . . , x_(n)] by using the public key (pk) to the storage apparatus 130.

On reception of a matching request from the matching request apparatus 120, the matching apparatus 140 gets the encrypted data (Enc(pk, A₁), . . . , Enc(pk, A_(n))) of the first transformed values from the storage apparatus 130. In addition, the matching apparatus 140 gets the encrypted data (Enc(pk, x₁), . . . , Enc(pk, x_(n))) from the storage apparatus 130. The matching apparatus 140 obtains encrypted data (Enc(pk, Σ[i=1 to n] xi)) of a sum of individual elements {x_(i)} of the first binary vector X=[x₁, . . . , x_(n)]. In addition, the matching apparatus 140 generates a random number (S) and obtains encrypted data (Enc(pk, SA_(i)), . . . Enc(pk, SA_(n))) by multiplying the random number (S) to individual elements of the encrypted data (Enc(pk, A₁), . . . , Enc(pk, A_(n))) of the first transformed values through a scalar operation. Next, the matching apparatus 140 transmits the calculated encrypted data (Enc(pk, SA₁), . . . , Enc(pk, SA_(n))) to the matching request apparatus 120.

The matching request apparatus 120 calculates the second transformed values (B₁, . . . , B_(n)) by applying the second transformation function f2 to an extracted matching target n-dimensional binary vector Y=[y₁, . . . , y_(n)]. Next, the matching request apparatus 120 performs calculation of the encrypted data Enc(pk, SA_(i)) (i=1, . . . , n) received from the matching apparatus 140 in an encrypted state and the second transformed values (B_(i)) (i=1, . . . , n). Specifically, the matching request apparatus 120 multiplies the n first transformed values (transformed vector) [A_(i), . . . , A_(n)] by the random number to obtain values [SA_(i), . . . , SA_(n)] and obtains encrypted data (Enc(pk, Σ[i=1 to n]SA_(i)B_(i))) of a sum of values obtained by multiplying the values [SA₁, . . . , SA_(n)] by elements of the second transformed values (transformation vector) [B₁, . . . , B_(n)]. Next, the matching request apparatus 120 transmits the encrypted data (Enc(pk, Σ[i=1 to n]SA_(i)B_(i))) to the matching apparatus 140 as a response.

The matching apparatus 140 performs a scalar operation of a reciprocal (S{circumflex over ( )}(−1)) of the random number (S) to the response (encrypted data) (Enc(pk, Σ[i=1 to n]SA_(i)B_(i))) to remove the random number (S) from the response. Namely, the matching apparatus 140 obtains encrypted data (Enc(pk, Σ[i=1 to n]A_(i)B_(i))) which is a sum of values obtained by multiplying elements of the n first transformed values (transformed vector) [A₁, . . . , A_(n)] by elements of the second transformed values (transformed vector) [B₁, . . . , B_(n)] (encrypted data of an inner product of the vectors A and B). The matching apparatus 140 obtains encrypted data by addition of the encrypted data (Enc(pk, Σ[i=1 to n]A_(i)B_(i))) and the encrypted data (second template) (Enc(pk, Σ[i=1 to n] xi)) registered in the storage apparatus 130 in an encrypted state. The encrypted data is encrypted data Enc(pk, d_(H) (X, Y)) of a Hamming distance d_(H) (X, Y) between the vectors X and Y.

The n(n+1) transformation coefficients {a_(i,j)} (i=1, . . . , n, j=1, . . . , n+1) corresponding to the first transformation function f1 and the n{circumflex over ( )}2 transformation coefficients {b_(i,j)} (i, j=1, n) corresponding to the second transformation function f2 are set so that the first and second transformed values Ai and Bi (i=1, . . . , n) satisfy Σ[i=1 to n]A_(i)B_(i)=Σ[i=1 to n] (1−2x_(i))yi.

That is, a value (Σ[i=1 to n]A_(i)B_(i)+Σ[i=1 to n]xi) obtained by addition of an inner product of the vectors A and B and Σ[i=1 to n] xi is given as

Σ[i=1 to n](1−2x _(i))yi+Σ[i=1 to n]xi

which corresponds to a Hamming distance d_(H) (X, Y) between the vectors X and Y. Namely, Σ[i=1 to n]A_(i)B_(i) is a first divided value of the Hamming distance d_(H) (X, Y) between the binary vectors X and Y, and Σ[i=1 to n]xi is a second divided value of the Hamming distance d_(H) (X, Y).

The matching apparatus 140 transmits the encrypted data Enc(pk, d_(H) (X, Y)) of the Hamming distance d_(H) (X, Y) between the vectors X and Y to the verification apparatus 150.

The verification apparatus 150 decrypts the encrypted data Enc(pk, d_(H) (X, Y)) by using a secret key sk. If the decrypted Hamming distance d_(H) (X, Y) between the vectors X and Y is less than or equal to a threshold t, the verification apparatus 150 determines acceptance.

<Second Mode: Variation 1>

Alternatively, according to the mode of the present invention, with reference to FIG. 15, the registration request apparatus 110 transmits the encrypted data (Enc(pk, x_(i))) (i=1, . . . , n) of the individual elements {x_(i)} of the registration target n-dimensional first binary vector X=[x₁, . . . , x_(n)] to the storage apparatus 130.

The storage apparatus 130 obtains the encrypted data (Enc(pk, x_(i))) (i=1, . . . , n) of individual elements {xi} (i=1, . . . , n) of the first binary vector X=[x₁, . . . , x_(n)] and obtains the encrypted data (Enc(pk, Σ[i=1 to n] xi)) of a sum of individual elements {x_(i)} of the first binary vector X=[x₁, . . . , x_(n)]. In addition, the storage apparatus 130 has means for calculating encrypted data Enc(pk, A_(i)) (i=1, . . . , n) of n first transformed values {A_(i)} (i=1, . . . , n) by applying the first transformation function f1 to the first binary vector X with the individual elements {x_(i)} (i=1, . . . , n) of the first binary vector X in an encrypted state. The storage apparatus 130 holds the encrypted data (Enc(pk, A_(i)) (i=1, . . . , n)) of the n first transformed values and the encrypted data (Enc(pk, Σ[i=1 to n]x_(i))) of a sum of the elements of the first binary vector.

On reception of a matching request from the matching request apparatus 120, the matching apparatus 140 obtains the encrypted data of the n first transformed values from the storage apparatus 130 and generates a random number (S). The matching apparatus 140 obtains encrypted data (Enc(pk, SA_(i)) (i=1, . . . , n)) by multiplying the random number S to the individual elements of the encrypted data of the n first transformed values through a scalar operation. Next, the matching apparatus 140 transmits the encrypted data (Enc(pk, SA_(i)) (i=1, . . . , n)) to the matching request apparatus 120.

The matching request apparatus 120 obtains n second transformed values (transformed vector) [B₁, . . . , B_(n)] by applying the second transformation function f2 to a matching target n-dimensional second binary vector Y=[y1, . . . , yn]. In addition, the matching request apparatus 120, by performing a scalar operation of the encrypted data (Enc(pk, SA_(i))) (i=1, . . . , n) in an encrypted state, which has been received from the matching apparatus 140, obtains encrypted data Enc(pk, SA_(i)B_(i)) (i=1, . . . , n) which is a multiplication result of the second transformed values (B_(i)) to a result of multiplying the first transformed value (A_(i)) by the random number (S). The matching request apparatus 120 transmits a sum of these encrypted data (Enc(pk, Σ[i=1 to n]SA_(i)B_(i))) to the matching apparatus 140, as a response.

The matching apparatus 140 multiplies a reciprocal of the random number S to the response (Enc(pk, Σ[i=1 to n]SA₁ B,)) through a scalar operation to remove the random number S from the response. Namely, the matching apparatus 140 obtains encrypted data (Enc(pk, Σ[i=1 to n]A_(i)B_(i))) of a sum of values obtained by multiplying the n first transformed values (transformed vector) [A₁, . . . , A_(n)] by the second transformed values (transformed vector) [B₁, . . . , B_(n)] (encrypted data of the inner product of the vectors A and B). The matching apparatus 140 calculates addition of the encrypted data (Enc(pk, Σ[i=1 to n]A_(i)B_(i))) of the inner product of the vectors A and B and the encrypted data (second template) (Enc(pk, Σ[i=1 to n]x_(i))) registered in the storage apparatus 130 (homomorphic addition). The following equation holds.

(Σ[i=1 to n]A _(i) B _(i))+(Σ[i=1 to n]x _(i))=(Σ[i=1 to n](1−2x _(i))y _(i)+(Σ[i=1 to n]xi)

Namely, addition of the encrypted data (Enc(pk, Σ[i=1 to n]A_(i)B_(i))) and the encrypted data (second template) (Enc(pk, Σ[i=1 to n]x_(i))) is equal to the encrypted data of the Hamming distance d_(H) (X, Y) between the binary vectors X and Y. The matching apparatus 140 transmits the encrypted data of the Hamming distance between the binary vectors X and Y to the verification apparatus 150. The verification apparatus 150 decrypts the encrypted data of the Hamming distance between the binary vectors X and Y by using a secret key sk. The verification apparatus 150 determines whether the decrypted value (Hamming distance) is less than or equal to a threshold t. If the decrypted value is less than or equal to the threshold t, the verification apparatus 150 determines acceptance. If the decrypted value is over the threshold t, the verification apparatus 150 determines rejection.

<Second Mode: Variation 2>

Alternatively, according to a further mode of the present invention, with reference to FIG. 16, the registration request apparatus 110 transmits encrypted data (Enc(pk, x_(i)) (i=1, . . . , n)) of individual elements {x_(i)} of a registration target n-dimensional first binary vector X=[x₁, . . . , x_(n)] to the storage apparatus 130. The storage apparatus 130 holds the encrypted data of each element of the first binary vector.

On reception of a matching request from the matching request apparatus 120, the matching apparatus 140 gets the encrypted data (Enc(pk, x_(i)))(i=1, . . . , n) of the individual elements {x_(i)} of the first binary vector X=[x₁, . . . , x_(n)] from the storage apparatus 130 and obtains the encrypted data (Enc(pk, Σ[i=1 to n] xi)) of a sum of the elements {x₁} of the first binary vector X. It is noted that the storage apparatus 130 may be configured to obtain the encrypted data (Enc(pk, Σ[i=1 to n] xi)) of a sum of the individual elements {x_(i)} of the first binary vector X.

The matching apparatus 140 includes means that obtains encrypted data Enc(pk, A_(i)) (i=1, . . . , n) of the n first transformed values {A_(i)} (i=1, . . . , n) by applying the first transformation function f1 to the encrypted data (Enc(pk, x_(i))) (i=1, . . . , n) of individual elements {xi} of the first binary vector X=[x₁, . . . , x_(n)]. In addition, the matching apparatus 140 generates a random number (S) and obtains the encrypted data Enc(pk, SA_(i)) (i=1, . . . , n) by performing a scalar operation of the random number (S) to the individual elements of the encrypted data of the n first transformed values. Next, the matching apparatus 140 transmits the encrypted data Enc(pk, SA_(i)) (i=1, . . . , n) to the matching request apparatus 120.

The matching request apparatus 120 calculates the n second transformed values (transformed vector) [B₁, . . . , B_(n)] by applying the second transformation function f2 to a matching target n-dimensional second binary vector Y=[y₁, . . . y_(n)]. The matching request apparatus 120 performs a scalar operation to the encrypted data Enc(pk, SA_(i)) (i=1, . . . , n) in an encrypted state which is received from the matching apparatus 140 to obtain encrypted data Enc(pk, SA_(i)B_(i)) (i=1, . . . , n) of a result of multiplication of the second transformed values (B_(i)) (i=1, . . . , n) to the encrypted data Enc(pk, SA_(i)) (i=1, . . . , n). Next, the matching request apparatus 120 transmits a sum (Enc(pk, Σ[i=1 to n] SA_(i) B_(i))) of the encrypted data (Enc(pk, SA_(i) B_(i))) (i=1, . . . , n) to the matching apparatus 140 as a response. The subsequent processing of the matching apparatus 140 and the verification apparatus 150 is the same as that in the above second mode.

<Second Mode (First Mode): Variation 3>

Alternatively, according to a further mode of the present invention, with reference to FIG. 19, the registration request apparatus 110 transmits the encrypted data (Enc(pk, xi)) (i=1, . . . , n) of the individual elements {xi} of the registration target n-dimensional first binary vector X=[x₁, . . . , x_(n)] to the storage apparatus 130. The storage apparatus 130 holds the encrypted data of each element of the first binary vector.

On reception of a matching request from the matching request apparatus 120, the matching apparatus 140 gets the encrypted data (Enc(pk, x_(i))) (i=1, . . . , n) of the individual elements of the n-dimensional first binary vector from the storage apparatus 130 and obtains the encrypted data (Enc(pk, Σ[i=1 to n] xi)) of a sum of individual elements {x_(i)} of the first binary vector X. It is noted that the storage apparatus 130 may be configured to calculate the encrypted data (Enc(pk, Σ[i=1 to n] xi)) of a sum of the individual elements {x_(i)} of the first binary vector X=[x₁, . . . , x_(n)]. The matching apparatus 140 generates a first group of transformation coefficients {a_(i,j)} (i=1, . . . , n, j=1, . . . , n+1) of the first transformation function f1. The matching apparatus 140 obtains the encrypted data Enc(pk, A_(i)) (i=1, . . . , n) of the n first transformed values {A_(i)} (i=1, . . . , n) based on the first group of n(n+1) transformation coefficients {a_(i,j} (i=)1, n, j=1, n+1) and the encrypted data of the individual elements {x_(i)} of the first binary vector X=[x₁, . . . , x_(n)]. In addition, the matching apparatus 140 generates a random number (S) and performs a scalar operation of the random number (S) to individual elements of the encrypted data Enc(pk, A_(i)) (i=1, . . . , n) of the n first transformed values {A_(i)} (i=1, . . . , n) to obtain encrypted data Enc(pk, SA_(i)) (i=1, . . . , n). Next, the matching apparatus 140 transmits the encrypted data Enc(pk, SA_(i)) (i=1, . . . , n) to the matching request apparatus 120. In addition, the matching apparatus 140 transmits a second group of n×n transformation coefficients {b_(i,j)} (i, j=1, . . . , n) used to generate the first group of n(n+1)transformation coefficients {a_(i,j} (i=)1, n, j=1, . . . , n+1) to the matching request apparatus 120.

The matching request apparatus 120 calculates the n second transformed values (B₁, . . . , B_(n)), which are a result of an operation in which the second transformation function f2 including the second group of n×n transformation coefficients {b_(i,j)} (i, j=1, n) transmitted from the matching apparatus 140 is applied to a matching target n-dimensional second binary vector Y=[y₁, . . . , y_(n)]. The matching request apparatus 120 performs a scalar operation to the encrypted data Enc(pk, SA_(i)) (i=1, . . . , n) in an encrypted state which is received from the matching apparatus 140 to obtain encrypted data (Enc(pk, SA_(i)B_(i))) (i=1, . . . , n) of a result of multiplication of the second transformed values (Bi) (i=1, . . . , n) to the encrypted data Enc(pk, SA_(i)) (i=1, . . . , n). Next, the matching request apparatus 120 transmits a sum (Enc(pk, Σ[i=1 to n] SA₁ B₁)) of these encrypted data (Enc(pk, SA_(i)B_(i))) (i=1, . . . , n) to the matching apparatus 140 as a response. The subsequent processing of the matching apparatus 140 and the verification apparatus 150 is the same as that in the above second mode.

<Third Mode>

According to a third mode of the present invention, with reference to FIG. 22, the registration request apparatus 110 transmits first encrypted data (Enc(pk, (2x_(i)−1))) (i=1, . . . , n) obtained by encrypting first calculated values (2x_(i)−1) for individual elements {x_(i)}(i=1, . . . , n) of the registration target n-dimensional first binary vector X=[x₁, . . . , x_(n)] by additive homomorphic encryption using a public key (pk) to a storage apparatus 130. The storage apparatus 130 holds the first encrypted data (Enc(pk, (2x_(i)−1))) (i=1, . . . , n).

On reception of a matching request from a matching request apparatus 120, the matching apparatus 140 generates first to third random numbers (b_(i), a_(i), and r_(i)) (i=1, . . . , n). The matching request apparatus 120 transmits encrypted data of the first random number {b_(i)} (i=1, . . . , n) to the matching request apparatus 120. The matching request apparatus 120 performs a scalar operation of individual elements {y_(i)} of a matching target binary vector Y=[y₁, . . . , y_(n)] to the encrypted data (Enc(pk, b_(i))) (i=1, . . . , n) of the first random number {b_(i)}, to obtain second encrypted data (Enc(pk, b_(i) (2y_(i)−1))) (i=1, . . . , n). Next, the matching request apparatus 120 transmits the second encrypted data (Enc(pk, b_(i) (2y_(i)−1))) (i=1, . . . , n) to the matching apparatus 140.

Based on the second encrypted data (Enc(pk, b_(i)(2y_(i)−1))) (i=1, . . . , n) from the matching request apparatus 120,

the first encrypted data (Enc(pk, (2x_(i)−1))) (i=1, . . . , n) from the storage apparatus 130, and

the first to third random numbers (bi, ai, and ri) (i=1, . . . , n), the matching apparatus 140 obtains third encrypted data (Enc(pk, a_(i) (2x_(i)−1))) (i=1, . . . , n) of values obtained by multiplying the second random number {ai} to the first encrypted data (Enc(pk, (2x_(i)−1))) through a scalar operation, and

fourth encrypted data (Enc(pk, b_(i)r_(i) (2y_(i)−1))) (i=1, . . . , n) of values obtained by multiplying the third random number (r_(i)) to the second encrypted data (Enc(pk, b_(i) (2y_(i)−1))) through a scalar operation. In addition, the matching apparatus 140 generates hash values (H(a_(i)b_(i)r_(i))) (i=1, . . . , n) of products of the first to third random numbers (bi, ai, and ri). The matching apparatus 140 transmits the third encrypted data (Enc(pk, a_(i)(2x_(i)−1))) (i=1, . . . , n), the fourth encrypted data (Enc(pk, b_(i)r_(i)(2y_(i)−1))) (i=1, . . . , n), and the hash values (H(a_(i)b_(i)r_(i))) (i=1, . . . , n) to the verification apparatus 150. In this transmission of the third and fourth encrypted data (Enc(pk, a_(i)(2x₁−1)) and Enc(pk, b_(i)r_(i)(2y_(i)−1))) and the hash values (H(a_(i)b_(i)r_(i))) (i=1, . . . , n), the matching apparatus 140 may shuffle the sequence on the index i.

The verification apparatus 150 obtains a first decryption result (z_(a)) and a second decryption results (z_(b)) by decrypting the third encrypted data (Enc(pk, a_(i)(2x_(i)−1))) and the fourth encrypted data (Enc(pk, b_(i)r_(i)(2y_(i)−1))) by using a secret key (sk). The verification apparatus 150 calculates hash values (H(z_(a) z_(b))) of the product of the first and second decryption results. Next, the verification apparatus 150 determines whether a count number of mismatched elements between the hash values H((z_(a) z_(b))) and the hash values (H(a_(i)b_(i)r_(i))) received from the matching apparatus 140 is less than or equal to a predetermined value. If the number of mismatched elements is less than or equal to the predetermined value, the verification apparatus 150 determines acceptance. Otherwise, the verification apparatus 150 determines rejection.

<Third Mode; Variation 1>

According to a variation of a third mode, with reference to FIG. 23, the registration request apparatus 110 transmits first encrypted data (Enc(pk, x_(i))) (i=1, . . . , n) obtained by encrypting individual elements {x_(i)} (i=1, . . . , n) of the registration target n-dimensional first binary vector X=[x₁, . . . , x_(n)] by using a public key (pk) to the storage apparatus 130. The storage apparatus 130 holds the first encrypted data (Enc(pk, x_(i))) (i=1, . . . , n).

On reception of a matching request from the matching request apparatus 120, the matching apparatus 140 generates the first to third random numbers (b_(i), a_(i), and r_(i)) (i=1, . . . , n). In addition, the matching apparatus 140 receives the encrypted data (Enc(pk, x_(i))) (i=1, . . . , n) from the storage apparatus 130 and generates first encrypted data (Enc(pk, (2x_(i)−1))) (i=1, . . . , n) through a scalar operation and an additive homomorphic operation with the encrypted data (Enc(pk, x_(i))) (i=1, . . . , n) being kept in an encrypted state. The matching apparatus 140 transmits encrypted data (Enc(pk, b_(i))) (i=1, . . . , n) of the first random number {b_(i)} (i=1, . . . , n) to the matching request apparatus 120. The matching request apparatus 120 obtains second encrypted data (Enc(pk, b_(i) (2y_(i)−1))) (i=1, . . . , n) by performing a scalar operation of an operation result (2y_(i)−1) (i=1, . . . , n) of each of elements {y_(i)} of a matching target binary vector Y=[y₁, . . . , y_(n)] to the encrypted data (Enc(pk, b_(i))) (i=1, . . . , n) of the first random number. Next, the matching request apparatus 120 transmits the second encrypted data (Enc(pk, b_(i) (2y_(i)−1))) (i=1, . . . , n) to the matching apparatus 140. The subsequent processing of the matching apparatus 140 and the verification apparatus 150 is the same as that in the above third mode. Alternatively, the storage apparatus 130 may receive the encrypted data (Enc(pk, x_(i))) (i=1, . . . , n) from the registration request apparatus 110, generate the first encrypted data (Enc(pk, (2x_(i)−1)))=1, . . . , n) through a scalar operation and an additive homomorphic operation with the encrypted data (Enc(pk, x_(i))) (i=1, . . . , n) being kept in an encrypted state, and hold the resultant data as registered data.

<Third Mode: Variation 2>

In variation 2 of the third mode of the present invention, with reference to FIG. 25, the registration request apparatus 110 transmits first encrypted data (Enc(pk, (2x_(i)−1)))=1, . . . , n) obtained by encrypting first calculated values (2x_(i)−1) about individual elements {x_(i)} (i=1, . . . , n) of the n-dimensional first binary vector X=[x₁, . . . , x_(n)] with additive homomorphic encryption by using a public key (pk) to the storage apparatus 130.

The storage apparatus 130 includes means that generates random numbers (c_(i)) (i=1, . . . , n) (ci∈F_(q)) for the respective encrypted data (Enc(pk, (2x_(i)−1))) (i=1, . . . , n) of the first calculated values of the individual elements {x_(i)} (i=1, . . . , n) of the first binary vector X=[x₁, . . . , x_(n)] and generates encrypted data (Enc(pk, c_(i) (2x_(i)−1))) (i=1, . . . , n) obtained by performing a scalar operation of each random number c_(i) (i=1, . . . , n) to the encrypted data (Enc(pk, (2x_(i)−1)))=1, . . . , n). In addition, the storage apparatus 130 includes means that generates hash values (H(c_(i){circumflex over ( )}2)) of the squares (c_(i){circumflex over ( )}2) of the respective random number c_(i). The storage apparatus 130 transmits the encrypted data (Enc(pk, c_(i) (2x_(i)−1))) (i=1, . . . , n) obtained by multiplying each random number c_(i) (i=1, . . . , n) to the encrypted data (Enc(pk, (2x_(i)−1))) (i=1, . . . , n) through a scalor operation and the hash values (H(c_(i){circumflex over ( )}2)) (i=1, . . . , n) to the verification apparatus 150.

The verification apparatus 150 decrypts the encrypted data (Enc(pk, c_(i)(2x_(i)−1))) (i=1, . . . , n) transmitted from the storage apparatus 130 by using a secret key (sk) and obtains hash values (H(z_(i){circumflex over ( )}2)) of the individual decrypted values (z_(i)). The verification apparatus 150 determines whether the hash values (H(z_(i){circumflex over ( )}2) of the individual decrypted values (z_(i)) match the respective hash values (H(c_(i){circumflex over ( )}2)) transmitted from the storage apparatus 130. For example, if there is any mismatched hash value, the verification apparatus 150 determines rejection. Only when all the hash values match their respective hash values, the verification apparatus 150 determines acceptance. If the verification result from the verification apparatus 150 indicates acceptance, the storage apparatus 130 holds the encrypted data of the first calculated values.

<Fourth Mode>

In a fourth mode of the present invention, with reference to FIG. 26, the registration request apparatus 110 transmits first encrypted data (Enc(pk, (2xi−1))) (i=1, . . . , n) obtained by encrypting first calculated values (2xi−1) about individual elements {xi} of the registration target first binary vector X=[x₁, . . . , x_(n)] by using additive homomorphic encryption using a public key (pk) to the storage apparatus 130. The storage apparatus 130 holds the first encrypted data (Enc(pk, (2xi−1))) (i=1, . . . , n).

On reception of a matching request from the matching request apparatus 120, the matching apparatus 140 generates first and second random numbers (b_(i) and a_(i)) (i=1, . . . , n). The matching apparatus 140 transmits encrypted data (Enc(pk, b_(i))) (i=1, . . . , n) obtained by encrypting the first random number {b_(i)} (i=1, . . . , n) by using the public key (pk) to the matching request apparatus 120.

The matching request apparatus 120 obtains encrypted data (Enc(pk, (2y_(i)−1))) (i=1, . . . , n) by encrypting calculated values (2y_(i)−1) (i=1, . . . , n) about individual elements {y_(i)} of a matching target binary vector Y=[y₁, . . . , y_(n)] by using the public key (pk). In addition, the matching request apparatus 120 calculates second encrypted data (Enc(pk, b_(i) (2y_(i)−1))) (i=1, . . . , n) by multiplying the encrypted data Enc(pk, b_(i)) (i=1, . . . , n) of the first random number {b_(i)} in an encrypted state to the encrypted data (Enc(pk, (2y_(i)−1)))=1, . . . , n). Next, the matching request apparatus 120 transmits the second encrypted data (Enc(pk, b_(i) (2y_(i)−1)))=1, . . . , n) to the matching apparatus 140.

The matching apparatus 140 multiplies the generated second random numbers {a_(i)} (i=1, . . . , n) and the first encrypted data (Enc(pk, (2x_(i)−1))) (i=1, . . . , n) transmitted from storage apparatus 130, to obtain encrypted data (Enc(pk, ai(2xi−1))) (i=1, . . . , n). The matching apparatus 140 multiplies the encrypted data (Enc(pk, ai(2xi−1))) (i=1, . . . , n) and the second encrypted data (Enc(pk, b_(i) (2y_(i)−1))) (i=1, . . . , n) transmitted from the matching request apparatus 120, for example, in an encrypted state (a multiplicative homomorphic operation), to obtain encrypted data (Enc(pk, aib_(i) (2x_(i)−1)(2y_(i)−1))). In addition, the matching apparatus 140 generates hash values (H(a_(i)b_(i))) of products (a_(i) b_(i)) (i=1, . . . , n) of the first and second random numbers. Next, the matching apparatus 140 transmits the calculated encrypted data (Enc(pk, aib_(i) (2x_(i)−1)(2y_(i)−1))) and the hash values (H(a_(i)b_(i))) to the verification apparatus 150. In this transmission of the encrypted data (Enc(pk, aib_(i) (2x_(i)−1)(2y_(i)−1))) and the hash values (H(a_(i)b_(i)))=1, . . . , n), the matching apparatus 140 may shuffle the sequence relating to the index i.

The verification apparatus 150 decrypts the encrypted data (Enc(pk, aib_(i) (2x_(i)−1)(2y_(i)−1))) (i=1, . . . , n) by using a secret key (sk) to obtain decryption results (z_(i)) (i=1, . . . , n). The verification apparatus 150 calculates hash values (H(z_(i))) of the decrypted values (z_(i)) (i=1, . . . , n). The verification apparatus 150 determines whether a count number of mismatched elements between the hash values (H(z_(i))) (i=1, . . . , n) and the hash values (H(a_(i)b_(i))) (i=1, . . . , n) received from the matching apparatus 140 is less than or equal to a predetermined value.

For example, if the number of mismatched elements is less than or equal to the predetermined value, the verification apparatus 150 determines acceptance. Otherwise, the verification apparatus 150 determines rejection.

<Fourth Mode: Variation>

In a variation of the fourth mode of the present invention, with reference to FIG. 27, the registration request apparatus 110 transmits the first encrypted data (Enc(pk, (2x_(i)−1))) (i=1, . . . , n) obtained by encrypting the first calculated values (2x_(i)−1) about the individual elements {x_(i)} of the first binary vector X=[x₁, . . . , x_(n)] by using an multiplicative homomorphic encryption scheme using a public key (pk) to the storage apparatus 130.

The storage apparatus 130 includes means that generates random numbers (c_(i)) (i=1, . . . , n) (ci∈F_(q)) for the respective encrypted data (Enc(pk, (2x_(i)−1))) (i=1, . . . , n) of the first calculated values of the individual elements x of the first binary vector X=[x₁, . . . , x_(n)] and generates the encrypted data (Enc(pk, (2x_(i)−1))) (i=1, . . . , n) by multiplying the encrypted data Enc(pk, ci) of the random numbers (c_(i)) to the encrypted data (Enc(pk, (2x_(i)−1))) (i=1, . . . , n). In addition, the storage apparatus 130 includes means that generates hash values H(c_(i){circumflex over ( )}2) of the squares of the respective random numbers (c_(i)). The storage apparatus 130 transmits the encrypted data (Enc(pk, (2x_(i)−1))) (i=1, . . . , n) and the hash values (H(c_(i){circumflex over ( )}2))(i=1, . . . , n) to the verification apparatus 150.

The verification apparatus 150 decrypts the encrypted data (Enc(pk, c_(i)(2x_(i)−1))) (i=1, . . . , n) transmitted from the storage apparatus 130 by using a secret key (sk). Next, the verification apparatus 150 calculates hash values (H(z_(i){circumflex over ( )}2)) (i=1, . . . , n) of the decrypted values (z_(i)) of the encrypted data (Enc(pk, (2x_(i)−1))) (i=1, . . . , n). The verification apparatus 150 determines whether the hash values (H(z_(i){circumflex over ( )}2)) (i=1, . . . , n) match the respective hash values (H(c_(i){circumflex over ( )}2)) (i=1, . . . , n) transmitted from the storage apparatus 130. For example, if there is any mismatched hash value, the verification apparatus 150 determines rejection. Only when all the hash values match their respective hash values, the verification apparatus 150 determines acceptance. If the verification result outputted from the verification apparatus 150 indicates acceptance, the storage apparatus 130 holds the encrypted data (Enc(pk, (2x_(i)−1))) (i=1, . . . , n) of the first calculated values.

A comparative example will hereinafter be described before description of example embodiments of the present invention.

First, an operation of an individual algorithm of Modified-Elgamal encryption will be described. First, the key generation algorithm receives a security parameter 1{circumflex over ( )}κ as input data.

Next, a group G whose order is a K-bit prime q and its generator g are generated. Next, x∈F_(q)={0, 1, . . . , q−1} is randomly selected, and h=g{circumflex over ( )}x is set ({circumflex over ( )} denotes an exponentiation operator).

Finally, a public key pk=(g, h=g{circumflex over ( )}x) and a secret key sk=x are outputted.

First, the encryption algorithm receives the public key pk and a message m as input data.

Next, a random number r is randomly selected r∈F_(q).

Next, C[0]=g{circumflex over ( )}r and C[1]=h{circumflex over ( )}r·g{circumflex over ( )}m are calculated.

Finally, a ciphertext C=(C[0], C[1]) is outputted.

First, the decryption algorithm receives the secret key sk=x and the ciphertext C=(C[0], C[1]) as input data.

Next, as a decryption result, M=C[1]/(C[0]{circumflex over ( )}x) is outputted.

For a ciphertext of a certain message m,

Enc(pk,m)=(C[0],C[1])=(g{circumflex over ( )}r,h{circumflex over ( )}r·g{circumflex over ( )}m),

the following relationship holds.

Dec(sk,(c[0],c[1]))=c[1]/(c[0]{circumflex over ( )}x)=g{circumflex over ( )}m

The decryption algorithm may output g{circumflex over ( )}m, instead of the message m. Use of the Modified-Elgamal encryption enables calculation of ciphertexts in an encrypted state corresponding to addition of plaintexts or enables calculation of a ciphertext in an encrypted state corresponding to multiplication of a plaintext by a constant.

In the case of addition, when a public key pk=(g, h=g{circumflex over ( )}x), and ciphertexts of two messages m and m′ are given as,

C=Enc(pk,m)=(C[0],C[1])=(g{circumflex over ( )}r,h{circumflex over ( )}r·g{circumflex over ( )}m), and

C′=Enc(pk,m′)=(C′[0],C′[1])=(g{circumflex over ( )}r′,h{circumflex over ( )}r′·g{circumflex over ( )}m′),

the following holds.

(C[0]C′[0],C[1]C′[1])=(g{circumflex over ( )}{r+r′},h{circumflex over ( )}{r+r′}g{circumflex over ( )}{m+m′})=Enc(pk,m+m′)

In the case of multiplication by constant, when the public key pk=(g, h=g{circumflex over ( )}x), an arbitrary constant=z, and a ciphertext c=Enc(pk, m)=(c[0], c[1])=(g{circumflex over ( )}r, h{circumflex over ( )}r·g{circumflex over ( )}m), the following holds (c[0]{circumflex over ( )}z, c[1]{circumflex over ( )}z)=(g{circumflex over ( )}A{zr}, h{circumflex over ( )}{zr}g{circumflex over ( )}{zm})=Enc(pk, zm)

That is, for Enc(pk, x)=C, Enc(pk, x′)=C′, and an integer z, if addition and scalor operation are defined as

Add(C,C′)=(C[0]·C′[0],C[1]·C′[1]) and

Sc1(z,C)=(C[0]{circumflex over ( )}z,C[1]{circumflex over ( )}z),

the following holds.

Add(C,C′)=Enc(pk,x+x′ mod q), and

Sc1(z,C)=Enc(pk,zx mod q)

where “x+x′ mod q” and “zx mod q” are results obtained by calculating x+x′ and zx on a field Fq.

Comparative Example

The following comparative example is based on the disclosure of NPL 1.

The registration target data is expressed as an n-dimensional vector X=[x₁, . . . , x_(n)]∈{0, 1, . . . , l}^(n)

where n denotes a predetermined value (a natural number) and xi (i=1, . . . , n) is any value (for example, an integer) from 0 to 1.

The target data to be matched (authenticated) is given as

Y=[y ₁ . . . ,y _(n)]∈{0,1, . . . ,l} ^(n)

where {y_(i)} (i=1, . . . , n) is any value (for example, an integer) from 0 to 1.

The processing in the matching system is basically divided into

-   -   a preparation phase,     -   a registration phase, and     -   a matching phase. As illustrated in FIG. 2, as the preparation,         for example, a verification apparatus 150 generates a public key         pk and a secret key sk by using a security parameter         1{circumflex over ( )}κ and disseminates the public key pk         (S100).

The following distance: d_(E) ² (X, Y) between the registered data (an n-dimensional vector) and the matching target data (an n-dimensional vector) is divided as follows.

$\begin{matrix} {{d_{E}^{2}\left( {X,Y} \right)} = {{\sum\limits_{i = 1}^{n}\left( {x_{i} - y_{i}} \right)^{2}} = {{{\sum\limits_{i = 1}^{n}x_{i}^{2}} - {2{\sum\limits_{i = 1}^{n}{x_{i}y_{i}}}} + {\sum\limits_{i = 1}^{n}y_{i}^{2}}} = {D_{1} + D_{2}}}}} & (1) \\ {\mspace{79mu} {D_{1} = {\sum\limits_{i = 1}^{n}x_{i}^{2}}}} & (2) \\ {\mspace{79mu} {D_{2} = {{{- 2}{\sum\limits_{i = 1}^{n}{x_{i}y_{i}}}} + {\sum\limits_{i = 1}^{n}y_{i}^{2}}}}} & (3) \end{matrix}$

Regarding the registered data X=[×1, . . . , xn], a registration request apparatus 110 transmits the following data as a template to a storage apparatus 130:

-   -   the encrypted data

Enc(pk, xi) (i=1, . . . , n) of the n elements x_(i)(i=1, . . . , n); and the encrypted data

${Enc}\mspace{14mu} \left( {{p\; k},{\sum\limits_{i = 1}^{n}x_{i}^{2}}} \right)$

of a sum of

$\sum\limits_{i = 1}^{n}X_{i}^{2}$

the squares of the n elements x_(i) (S101).

The storage apparatus 130 stores

Enc(pk, xi) (i=1, . . . , n), and

${Enc}\mspace{14mu} \left( {{p\; k},{\sum\limits_{i = 1}^{n}x_{i}^{2}}} \right)$

in association with a registration identifier Id (Identity), etc.

The matching request apparatus 120, when the matching target data Y=[y₁, . . . y_(n)] is to be matched, transmits a matching request to a matching apparatus 140 (S102).

The matching apparatus 140 obtains the registered template Enc(pk, x₁), . . . , Enc(pk, x_(n)), and

${Enc}\mspace{14mu} \left( {{p\; k},{\sum\limits_{i = 1}^{n}x_{i}^{2}}} \right)$

from the storage apparatus 130 based on a user ID (S103).

The matching apparatus 140 generates a random number S (S104), creates encrypted data

Enc(pk,Sx _(i)), . . . ,Enc(pk,Sx _(n))

by multiplying the random number S to the registered template Enc(pk, x_(i)) (i=1, . . . , n) though a scalar operation, and transmits the created encrypted data to the matching request apparatus 120 (S105).

Preferably, each time, the matching apparatus 140 selects a different number as the random number

S∈F _(q)={0,1, . . . ,q−1}.

The matching apparatus 140 does not transmit the encrypted data

${Enc}\mspace{14mu} \left( {{p\; k},{\sum\limits_{i = 1}^{n}x_{i}^{2}}} \right)$

(a second template) of

$\sum\limits_{i = 1}^{n}x_{i}^{2}$

to the matching request apparatus 120.

From the matching target data Y=[y1, . . . yn], the matching request apparatus 120 calculates

$\sum\limits_{i = 1}^{n}{y_{i}^{2}.}$

Next, the matching request apparatus 120, by performing a scalar operation to the received Enc(pk, S),

$\begin{matrix} {{Scl}\left( {{\sum\limits_{i = 1}^{n}y_{i}^{2}},{{Enc}\left( {{p\; k},S} \right)}} \right)} & (4) \end{matrix}$

generates

$\begin{matrix} {{Enc}\mspace{14mu} \left( {{p\; k},{S{\sum\limits_{i = 1}^{n}y_{i}^{2}}}} \right)} & (5) \end{matrix}$

More specifically, it is assumed that the encrypted data of the random number S that the matching request apparatus 120 has received is given as

Enc(pk,S)=C=(g{circumflex over ( )}r,g{circumflex over ( )}S·h{circumflex over ( )}r)=(C[0],C[1])  (6)

For Enc(pk, S)=C=(C[0], C[1]), the matching request apparatus 120 calculates the following.

$\begin{matrix} \left( {{{C\lbrack 0\rbrack}\bigwedge\left( {\sum\limits_{i = 1}^{n}y_{i}^{2}} \right)},{{C\lbrack 1\rbrack}\bigwedge\left( {\sum\limits_{i = 1}^{n}y_{i}^{2}} \right)}} \right) & (7) \end{matrix}$

This is equivalent to

${Enc}\mspace{14mu} \left( {{p\; k},{S{\sum\limits_{i = 1}^{n}y_{i}^{2}}}} \right)$

in Expression (5).

In addition, the matching request apparatus 120 multiplies, through a scalor operation, each of elements {y_(i)} of the matching target vector to n {Enc(pk, Sxi)}i (i=1, . . . , n) received from the matching apparatus 140:

Sc1((−2y _(i)),Enc(pk,Sx _(i)))(i=1, . . . ,n)

and obtains the following n encrypted data.

Enc(pk,(−2y _(i))Sx _(i))=Enc(pk,−2Sx _(i) y _(i))(i=1, . . . ,n)  (8)

The matching request apparatus 120 performs an additive operation of the homomorphic encryption to obtain

$\begin{matrix} {{Enc}\left( {{p\; k},{{- 2}S{\sum\limits_{i = 1}^{n}{x_{i}y_{i}}}}} \right)} & (9) \end{matrix}$

Next, the matching request apparatus 120 performs a homomorphic addition of the above and

$\begin{matrix} {{Enc}\left( {{p\; k},{S{\sum\limits_{i = 1}^{n}y_{i}^{2}}}} \right)} & (10) \end{matrix}$

to obtain

$\begin{matrix} {{{Enc}\left( {{p\; k},{S\left( {{\sum\limits_{i = 1}^{n}y_{i}^{2}} - {2{\sum\limits_{i = 1}^{n}{x_{i}y_{i}}}}} \right)}} \right)} = {{Enc}\left( {{p\; k},{SD}_{2}} \right)}} & (11) \end{matrix}$

and transmit the obtained encrypted data to the matching apparatus 140 (S106).

The matching apparatus 140 performs a scalar operation of a reciprocal of S (S{circumflex over ( )}(−1)=S{circumflex over ( )}(q−2) mod q) to the received encrypted data Enc(pk, SD₂)

Sc1(S{circumflex over ( )}(−1),Enc(pk,SD ₂))  (12)

Based on the following relationship,

Sc1(S{circumflex over ( )}(−1),Enc(pk,SD ₂))=Enc(pk,S{circumflex over ( )}(−1)SD ₂)=Enc(pk,D ₂)  (13)

the matching apparatus 140 calculates

$\begin{matrix} {{{Enc}\left( {{p\; k},{{\sum\limits_{i = 1}^{n}y_{i}^{2}} - {2{\sum\limits_{i = 1}^{n}{x_{i}y_{i}}}}}} \right)}\left( {= {{Enc}\left( {{p\; k},D_{2}} \right)}} \right)} & (14) \end{matrix}$

From the registered templates

${{{Enc}\left( {{p\; k},{\sum\limits_{i = 1}^{n}x_{i}^{2}}} \right)}\mspace{14mu} {and}\mspace{14mu} {{Enc}\left( {{p\; k},{{\sum\limits_{i = 1}^{n}y_{i}^{2}} - {2{\sum\limits_{i = 1}^{n}{x_{i}y_{i}}}}}} \right)}},$

the matching apparatus 14U performs an additive homomorphic operation to obtain the encrypted data of the distance d_(E) ² (X, Y) as follows.

$\begin{matrix} {{{Enc}\left( {{p\; k},{d_{E}^{2}\left( {x,y} \right)}} \right)} = {{{Enc}\left( {{p\; k},{\sum\limits_{i = 1}^{n}x_{i}^{2}}} \right)} + {{Enc}\left( {{p\; k},{{{- 2}{\sum\limits_{i = 1}^{n}{x_{i}y_{i}}}} + {\sum\limits_{i = 1}^{n}y_{i}^{2}}}} \right)}}} & (15) \end{matrix}$

The matching apparatus 140 transmits the encrypted data Enc(pk, d_(E) ² (X, Y)) to the verification apparatus 150 (S107).

The verification apparatus 150 decrypts the encrypted data Enc(pk, d_(E) ² (X, Y)) of the distance by using the secret key sk to obtain

Dec(sk,Enc(pk,d _(E) ²(X,Y)))=d _(E) ²(X,Y).

Next, the verification apparatus 150 determines whether the distance d_(E) ² (X, Y) is less than or equal to a predetermined threshold=t (S108). In the Modified-Elgamal encryption, the decryption result is g{circumflex over ( )}(d_(E) ² (X, Y)), and whether this matches any one of g{circumflex over ( )}0, g{circumflex over ( )}1, . . . , and g{circumflex over ( )}t is determined.

The verification apparatus 150 may transmit the verification result (acceptance/rejection) to the matching apparatus 140 (S109).

Problems with Comparison Example

The Hamming distance between binary vectors can be calculated by the same method used to calculate a Euclidean distance between multivalued vectors. Thus, a system in which the above multivalued-vector-type biometric information is matched by using the Euclidean distance d_(E) ² (X, Y) seems to be capable of handling binary-vector-type biometric information.

In the case of the individual elements xi of the binary vector X=[x₁, . . . , x_(n)]∈{0,1}^(n), the following holds.

x _(i){circumflex over ( )}2=x _(i)(i==1, . . . ,n)  (16)

Thus, Enc(pk, Sx_(i){circumflex over ( )}2) can be calculated from {Enc(pk, Sx_(i))} received in S106 in FIG. 2.

As described above, the matching apparatus 140 performs a scalar operation of a reciprocal S{circumflex over ( )}(−1) of S to Enc(pk, SD₂) transmitted from the matching request apparatus 120 to calculate Enc(pk, D₂), calculates Enc(pk, D₁)+Enc(pk, D₂) by performing an additive homomorphic operation, and transmits the result to the verification apparatus 150 as the encrypted distance Enc(pk, d_(E) ² (X, Y)). In the case of the binary-vector type biometric information,

if x _(i)∈{0,1},x _(i){circumflex over ( )}2=x _(i).

Thus, in the matching request apparatus 120, the encrypted data Enc(pk, Sx_(i)) received from the matching apparatus 140 matches Enc(pk, Sx_(i){circumflex over ( )}2).

In addition, with reference to FIG. 3, in S106, the matching request apparatus 120 uses the encrypted data Enc(pk, S) of the random number S received from the matching apparatus 140 to calculate

$\begin{matrix} {{Enc}\left( {{p\; k},{S\left( {c - {\sum\limits_{i = 1}^{n}x_{i}^{2}}} \right)}} \right)} & (17) \end{matrix}$

and transmits the result to the matching apparatus 140.

Namely, the matching request apparatus 120 obtains Enc(pk, cS) by performing a scalar operation Scl(c, Enc(pk, S)).

Furthermore, since the following holds,

$\begin{matrix} {{\sum\limits_{i = 1}^{n}{{Enc}\left( {{p\; k},{Sx}_{i}} \right)}} = {{\overset{n}{\sum\limits_{i = 1}}{{Enc}\left( {{p\; k},{Sx}_{i}^{2}} \right)}} = {{Enc}\left( {{p\; k},{\sum\limits_{i = 1}^{n}{Sx}_{i}^{2}}} \right)}}} & (18) \end{matrix}$

the following is calculated.

$\begin{matrix} {{Enc}\left( {{p\; k},{S{\sum\limits_{i = 1}^{n}x_{i}^{2}}}} \right)} & (19) \end{matrix}$

Next, from the following scalar operation

$\begin{matrix} {{{Scl}\left( {\left( {- 1} \right),{{Enc}\left( {{p\; k},{S{\sum\limits_{i = 1}^{n}x_{i}^{2}}}} \right)}} \right)} = {{Enc}\left( {{p\; k},{{- S}{\sum\limits_{i = 1}^{n}x_{i}^{2}}}} \right)}} & (20) \end{matrix}$

the following is calculated.

$\begin{matrix} {{Enc}\left( {{p\; k},{{- S}{\sum\limits_{i = 1}^{n}x_{i}^{2}}}} \right)} & (21) \end{matrix}$

By adding the above Expression (21) to Enc(pk, cS) in an encrypted state, the following is calculated.

$\begin{matrix} {{{{Enc}\left( {{p\; k},{cS}} \right)} + {{Enc}\left( {{p\; k},{{- S}{\sum\limits_{i = 1}^{n}x_{i}^{2}}}} \right)}} = {{Enc}\left( {{p\; k},{S\left( {c - {\sum\limits_{i = 1}^{n}x_{i}^{2}}} \right)}} \right)}} & (22) \end{matrix}$

The matching apparatus 140 handles

${Enc}\left( {{p\; k},{S\left( {c - {\sum\limits_{i = 1}^{n}x_{i}^{2}}} \right)}} \right)$

transmitted from the matching request apparatus 120, as Enc(pk, SD₂) transmitted from the matching request apparatus 120 and calculates Enc(pk, D₂) by performing a scalar operation of a reciprocal of S{circumflex over ( )}(−1) of S to the encrypted data. Next, by performing an additive homomorphic operation, the matching apparatus 140 transmits a sum of Enc(pk, D₂) and Enc(pk, D₁) to the verification apparatus 150 as an encrypted distance Enc(pk, d_(E) ² (X, Y)).

In this case, Enc(pk, d_(E) ² (X, Y)) that the matching apparatus 140 transmits to the verification apparatus 150 is given as follows.

$\begin{matrix} \begin{matrix} {{{Enc}\left( {{p\; k},{d_{E}^{2}\left( {x,y} \right)}} \right)} = {{{Enc}\left( {{p\; k},{\sum\limits_{i = 1}^{n}x_{i}^{2}}} \right)} + {{Enc}\left( {{p\; k},{c - {\sum\limits_{i = 1}^{n}x_{i}^{2}}}} \right)}}} \\ {= {{Enc}\left( {{p\; k},{{\sum\limits_{i = 1}^{n}x_{i}^{2}} + c - {\sum\limits_{i = 1}^{n}x_{i}^{2}}}} \right)}} \\ {= {{Enc}\left( {{p\; k},c} \right)}} \end{matrix} & (23) \end{matrix}$

The verification apparatus 150 decrypts Enc(pk, d_(E) ² (X, Y)) by using the secret key sk. The verification apparatus 150 determines whether the decryption result (g{circumflex over ( )}c) matches any one of g{circumflex over ( )}0, g{circumflex over ( )}1, . . . , and g{circumflex over ( )}t (t is a threshold) and outputs the determination result as a verification result (acceptance if the decryption result (g{circumflex over ( )}c) matches any one of g{circumflex over ( )}0, g{circumflex over ( )}1, . . . , and g{circumflex over ( )}t).

Thus, by selecting c that is less than or equal to tin the matching request apparatus 120, the distance between the registered biometric information X and the biometric information Y used in authentication is calculated as follows.

D ₁ +D ₂ =c<=t  (24)

Thus, in the example in FIG. 2, a query that is certainly accepted can be transmitted to the verification apparatus 150.

As described above, when the biometric information is a binary vector, an eavesdropper can impersonate an arbitrary user.

Irises (iris codes), palm prints (competitive codes), etc. are widely known as binary-vector-type biometric information having a very low error rate. Whether two items of biometric information have been extracted from the same person is determined by the Hamming distance between the two items of biometric information. Namely, if the Hamming distance is less than or equal to a threshold, the two items of biometric information are determined to have been extracted from the same person. Otherwise, the two items of biometric information are determined to have been extracted from different persons. Hereinafter, some example embodiments will be described with reference to drawings.

First Example Embodiment

FIG. 4 illustrates a first example embodiment of the present invention. In the present example embodiment, for example, a Hamming distance between n-dimensional binary vectors

X=[₁ , . . . ,x _(n)]∈{0,1}^(n) and

Y=[y ₁ , . . . ,y _(n)]∈{0,1}^(n)

is divided as follows.

$\begin{matrix} {{d_{H}\left( {X,Y} \right)} = {{{\sum\limits_{i = 1}^{n}x_{i}} - {2{\sum\limits_{i = 1}^{n}{x_{i}y_{i}}}} + {\sum\limits_{i = 1}^{n}y_{i}}} = {{\sum\limits_{i = 1}^{n}x_{i}} + {\sum\limits_{i = 1}^{n}{\left( {1 - {2x_{i}}} \right)y_{i}}}}}} & (25) \\ {\mspace{20mu} {D_{1} = {\sum\limits_{i = 1}^{n}x_{i}}}} & (26) \\ {\mspace{20mu} {D_{2} = {\sum\limits_{i = 1}^{n}{\left( {1 - {2x_{i}}} \right)y_{i}}}}} & (27) \end{matrix}$

As described above, D1 does not depend on the values of the matching target vector Y.

A public key and a secret key are generated (S10) in the preparation phase as described above.

Based on the binary vector X=[×1, . . . , xn]∈{0, 1}^(n), the registration request apparatus 110 transmits the following encrypted data to the storage apparatus 130 (S11).

Enc(pk,1−2x _(i)),Enc(pk,1−2x _(n))  (28)

$\begin{matrix} {{Enc}\left( {{pk},{\sum\limits_{i = 1}^{n}x_{i}}} \right)} & (29) \end{matrix}$

The storage apparatus 130 holds the encrypted data Enc(pk, 1−2x_(i)) (i=1, . . . , n) and

${Enc}\left( {{pk},{\sum\limits_{i = 1}^{n}x_{i}}} \right)$

in association with a registration identifier Id.

The matching apparatus 140 receives a matching request from the matching request apparatus 120 (S12). The matching apparatus 140 receives the encrypted data

Enc(pk,1−2x ₁), . . . ,Enc(pk,1−2x _(n))

stored in association with the Id from the storage apparatus 130 (S13). The matching apparatus 140 generates a random number S (S14).

Next, by performing a scalar operation Sc1(S, Enc(pk, 1−2x_(i))) (i=1, . . . , n) by using the random number S, the matching apparatus 140 calculates the following encrypted data.

Enc(pk,S(1−2x _(i)))(i=1, . . . ,n)  (30)

The matching apparatus 140 transmits the encrypted data Enc(pk, S(1−2x_(i))) (i=1, . . . , n) to the matching request apparatus 120 (S15).

From Y=[y1, . . . , yn]∈{0, 1}^(n) and the encrypted data Enc(pk, S(1−2x_(i))) (i=1, . . . , n) received from the matching apparatus 140, the matching request apparatus 120 performs a scalar operation Sc1(y Enc(pk, S(1−2x_(i)))), to calculate the following encrypted data.

Enc(pk,S(1−2x _(i))y _(i))(i=1, . . . ,n)  (31)

Next, by adding these encrypted data, the matching request apparatus 120 calculates the following encrypted data.

$\begin{matrix} {{\sum\limits_{i = 1}^{n}{{Enc}\left( {{pk},{{S\left( {1 - {2x_{i}}} \right)}y_{i}}} \right)}} = {{{Enc}\left( {{pk},{S\left( {\sum\limits_{i = 1}^{n}{\left( {1 - {2x_{i}}} \right)y_{i}}} \right)}} \right)} = {{Enc}\left( {{pk},{SD}_{2}} \right)}}} & (32) \end{matrix}$

The matching request apparatus 120 transmits Enc(pk, SD₂) to the matching apparatus 140 (S16).

The matching apparatus 140 does not transmit Enc(pk, S) to the matching request apparatus 120. Thus, the matching request apparatus 120 cannot calculate the following encrypted data.

$\begin{matrix} {{Enc}\left( {{pk},{S\left( {\sum\limits_{i = 1}^{n}x_{i}} \right)}} \right)} & (33) \end{matrix}$

Thus, the client cannot falsify the Hamming distance.

The matching apparatus 140 performs a scalor operation of the reciprocal S{circumflex over ( )}(−1) of the random number S to the encrypted data

${{Enc}\left( {{pk},{S\left( {\sum\limits_{i = 1}^{n}{\left( {1 - {2x_{i}}} \right)y_{i}}} \right)}} \right)} = {{Enc}\left( {{pk},{SD}_{2}} \right)}$

transmitted from the matching request apparatus 120.

$\begin{matrix} {{Scl}\left( {S^{- 1},{{Enc}\left( {{pk},{S\left( {\sum\limits_{i = 1}^{n}{\left( {1 - {2x_{i}}} \right)y_{i}}} \right)}} \right)}} \right)} & (34) \end{matrix}$

The matching apparatus 140 consequently calculates the following encrypted data.

$\begin{matrix} {{{Enc}\left( {{pk},{\sum\limits_{i = 1}^{n}{\left( {1 - {2x_{i}}} \right)y_{i}}}} \right)} = {{Enc}\left( {{pk},D_{2}} \right)}} & (35) \end{matrix}$

The matching apparatus 140 adds the following template (36) registered in the storage apparatus 130 to Enc(pk, D₂) in Expression (35).

$\begin{matrix} {{{Enc}\left( {{pk},{\sum\limits_{i = 1}^{n}x_{i}}} \right)} = {{Enc}\left( {{pk},D_{1}} \right)}} & (36) \end{matrix}$

to calculate the following encrypted Hamming distance.

Enc(pk,d _(H)(X,Y))=Enc(pk,D ₁)+Enc(pk,D ₂)  (37)

The matching apparatus 140 transmits the encrypted Hamming distance Enc(pk, d_(H) (X, Y)) to the verification apparatus 150 (S17).

The verification apparatus 150 decrypts Enc(pk, d_(H) (X, Y)) by using the secret key sk. The verification apparatus 150 determines whether the decryption result (d_(H) (X, Y)) matches any one of g{circumflex over ( )}0, g{circumflex over ( )}1, . . . , and g{circumflex over ( )}t (t is a threshold) (S18). The verification apparatus 150 outputs the determination result as the verification result (acceptance if the decryption result matches any one of g{circumflex over ( )}0, g{circumflex over ( )}1, . . . , and g{circumflex over ( )}t) (S19).

FIG. 5 illustrates a configuration according to the first example embodiment of the present invention. The matching system 100 is composed by an information processing system such as a computer system. The matching system 100 according to the first example embodiment includes the registration request apparatus 110, the storage apparatus 130, the matching request apparatus 120, the matching apparatus 140, and the verification apparatus 150.

The registration request apparatus 110 includes a registration target information extraction unit 111, a template generation unit 112, and a communication unit 113.

The storage apparatus 130 includes, in addition to a storage apparatus that holds information, an operation part that processes the information. Namely, the storage apparatus 130 includes an identifier management unit 131, a registration target data generation unit 132, a registered data storage unit 133, a registered data search unit 134, and a communication unit 135.

The matching request apparatus 120 includes a matching request generation unit 121, a matching target information extraction unit 122, a response generation unit 123, and a communication unit 124.

The matching apparatus 140 includes a registered data acquisition unit 141, a random number generation unit 142, an encrypted data generation unit 143, an encrypted distance calculation unit 144, a query generation unit 145, and a communication unit 146.

The verification apparatus 150 includes a key generation unit 151, a decryption key storage unit 152, a query determination unit 153, a verification result generation unit 154, and a communication unit 155.

For example, the registration request apparatus 110 and the storage apparatus 130, the storage apparatus 130 and the matching apparatus 140, the matching request apparatus 120 and the matching apparatus 140, and the matching apparatus 140 and the verification apparatus 150 may be connected to each other via respective communication units (each of which includes a transmitter (an interface) and a receiver (an interface) not illustrated) of these apparatuses and a communication network (for example, a local area network (LAN) or a wide area network (WAN)). Alternatively, at least two of the registration request apparatus 110, the storage apparatus 130, the matching apparatus 140, the matching request apparatus 120, and the verification apparatus 150 may be implemented in a single unit, and these apparatuses may be connected to each other by a bus (an inter-apparatus bus or an intra-apparatus bus) in the unit. For example, the verification apparatus 150 generates an encryption key and a decryption key based on a homomorphic encryption scheme, and the registration request apparatus 110, the storage apparatus 130, the matching apparatus 140, and the matching request apparatus 120 are configured to be able to obtain the public key (the encryption key) disseminated by the verification apparatus 150.

In the matching system 100, the registration request apparatus 110 and the matching request apparatus 120 may collectively be referred to as a “first node”. In the matching system 100, the storage apparatus 130 and the matching apparatus 140 may collectively be referred to as a “second node”. In addition, in the matching system 100, the verification apparatus 150 may be referred to as a “third node”. For example, the registration request apparatus 110 and the matching request apparatus 120 may be configured as a client apparatus, and the storage apparatus 130 and the matching apparatus 140 may be configured as a server apparatus. In addition, the verification apparatus 150 may be configured as a decryption apparatus that is connected to the server apparatus.

An operation in the matching system 100 according to the present example embodiment will be described. Processing in the matching system 100 according to the first example embodiment of the present invention will be described.

The processing in the matching system 100 is basically divided into:

-   -   a preparation phase,     -   a registration phase, and     -   a matching phase.

First, an outline of the processing in the individual phase will be described. In the matching system 100 according to the first example embodiment of the present invention, a homomorphic encryption scheme having a homomorphic property in addition and a scalar operation is used. For convenience of description, as the encryption scheme, the Modified-Elgamal encryption described above is used. Alternatively, elliptic Elgamal encryption or Paillier encryption may be used.

The elliptic Elgamal encryption is defined to a group on an elliptic curve on a finite field.

<Key Generation>: Parameters a, b, p, and q of an elliptic curve and a base point G on the elliptic curve are received as input data, and a public key pk=G, H=x(*)G and a secret key sk=x are outputted. A message space is a field F_(q)=0, 1, . . . , q−1. In general, a prime equal to or more than 128 bits is selected as q.

<Encryption>: The public key pk and a message m E Fq are received as input data, a random number r E F_(q) is selected, and the following ciphertext is outputted.

C=(C[0]=R(*)G,C[1]=(m(*)G)(+)(r(*)H))  (38)

Namely, the following is satisfied.

C[1]=(m+rx)(*)G  (39)

<Decryption>: The secret key sk and the ciphertext C=(C[0], C[1]) are received as input data, and the following M is outputted.

M=C[1](−)(sk(*)C[0]).  (40)

Namely, the following relationship is satisfied.

C[1](−)(sk(*)C[0])=(m+rx)(*)G(−)x(*)(r(*)G)=m(*)G  (41)

The decryption algorithm may return m(*)G, instead of the message m.

In each of the above algorithms, the following notation is used.

Addition of points A and B on an elliptic curve: A(+)B

Subtraction of a point B from a point A and on an elliptic curve: A(−)B

Multiplication of a point A on an elliptic curve by z: z(*)A

In the preparation phase, mainly, a public key and a secret key are generated by using a security parameter 1{circumflex over ( )}κ.

In the registration phase, mainly, a template is created by encrypting an extracted registration target vector by using the public key (encryption key) generated in the preparation phase and is stored.

In the matching phase, mainly, a distance between a newly extracted matching target vector and a single registered vector is calculated by using the secret key (decryption key) generated in the preparation phase.

Next, processing that the matching system 100 performs in the individual phases described above will be described in detail.

FIG. 6 is a flowchart illustrating an example of the processing that the matching system 100 according to the first example embodiment performs in the preparation phase. The processing that the matching system 100 according to the present example embodiment performs in the preparation phase will be described with reference to FIG. 6.

The key generation unit 151 in the verification apparatus 150 receives a security parameter and generates an encryption key (a public key) pk and a decryption key (a secret key) sk by using the received security parameter, for example, in accordance with the key generation algorithm (step A1). The generated encryption key and decryption key are compliant with a public key encryption scheme (for example, the Modified-Elgamal encryption) having a homomorphic property of addition and scalar multiplication.

The key generation unit 151 disseminates the generated encryption key pk in the matching system 100 (step A2).

The key generation unit 151 stores the generated decryption key sk in the decryption key storage unit 152 (step A3).

The processing that the matching system 100 according to the present example embodiment performs in the preparation phase is, as a matter of course, not limited to the mode illustrated as an example in FIG. 6.

FIG. 7 is a flowchart illustrating an example of the processing that the matching system 100 according to the first example embodiment performs in the registration phase. The processing that the matching system 100 according to the first example embodiment performs in the registration phase will be described with reference to FIG. 7.

The registration target information extraction unit 111 in the registration request apparatus 110 extracts biometric information

X=[x[1], . . . ,x[n]]

(which will be referred to as a “registration target vector”) from a registration target biometric characteristic (step B1). Herein, the notation x[i] (i=1, . . . , n) in which the suffix i of xi (i=1, . . . , n) is included in a bracket will be used, simply for clarification of operational expressions.

Next, the template generation unit 112 in the registration request apparatus 110 generates the following n templates obtained by encrypting 1−2xi(i=1, . . . , n) by using the encryption key pk (step B2).

Enc(pk,1−2x[1]), . . . ,Enc(pk,1−2x[n])  (42)

The ciphertexts calculated in step B2 will also be referred to as “first templates”.

Next, the template generation unit 112 in the registration request apparatus 110 generates a single template by encrypting x[1]+, . . . +x[n] by using the encryption key pk (step B3).

Enc(pk,x[1]+, . . . +x[n])  (43)

The ciphertext calculated in step B3 will also be referred to as a “second template”.

Enc(pk,1−2x[1])(=C1[1]),

. . . ,

Enc(pk,1−2x[n])(=C1[n]),

Enc(pk,x[1]+, . . . +x[n])(CC1)  (44)

In the Modified-Elgamal encryption, the template generation unit 112 selects a plurality of values rr1[1], . . . , r1[n] and rr1 from Z_(q).

The template generation unit 112 reads the generator g and the value h from the public key pk and creates the following ciphertexts for the binary vector X.

(g{circumflex over ( )}{r1[1]},g{circumflex over ( )}{1−2x[1]}×h{circumflex over ( )}{r1[1]})=(C1[1][0],C1[1][1])(=C1[1])

. . . ,

(g{circumflex over ( )}{r1[n]},g{circumflex over ( )}{1−2x[n]}×h{circumflex over ( )}{r1[n]})=(C1[n][0],C1[n][1])(=C1[n])}})

(g ^({rr1}) ,g ^({x[1]+ . . . +x[n]}) ×h ^({rr1})))=(CC1[0],CC1[1])(=CC1)  (45)

Next, the template generation unit 112 in the registration request apparatus 110 combines the first templates and the second template to create the following template (step B4).

(C1[1], . . . ,C1[n],CC1)  (46)

The communication unit 113 in the registration request apparatus 110 transmits the template

(C1[1], . . . ,C1[n],CC1)

to the storage apparatus 130 (step B5).

The communication unit 135 in the storage apparatus 130 receives the template

(C1[1], . . . ,C1[n],CC1)

from the registration request apparatus 110 (step B6).

The identifier management unit 131 in the storage apparatus 130 determines a unique registration identifier id for the template received from the registration request apparatus 110 (step B7).

The communication unit 135 in the storage apparatus 130 transmits the registration identifier id to the registration request apparatus 110 (step B8).

Next, the communication unit 113 in the registration request apparatus 110 receives the registration identifier id from the storage apparatus 130 (step B9).

The registration request apparatus 110 displays the received registration identifier id on a user interface (UI) such as a display (step B10). Alternatively, the registration request apparatus 110 may store the received registration identifier id in an IC (integrated circuit) card such as an employee card or an identifier card.

Next, the registration target data generation unit 132 in the storage apparatus 130 combines the template and the registration identifier id as registration target data (step B11).

(C1[1], . . . ,C1[n],CC1,id)  (47)

The registration target data generation unit 132 stores the registration target data in the registered data storage unit 133 in the storage apparatus 130 (step B12).

The processing that the matching system 100 according to the present example embodiment performs in the registration phase is not limited to the mode illustrated as an example in FIG. 3. For example, steps B11 and B12 may be performed before step B8. Namely, before transmitting the registration identifier id to the registration request apparatus 110, the storage apparatus 130 may store the registration target data in the registered data storage unit 133.

FIG. 8 is a flowchart illustrating an example of the processing that the matching system 100 according to the first example embodiment performs in the matching phase. The processing that the encryption matching system 100 performs in the matching phase will be described with reference to FIGS. 8 and 5.

The matching request apparatus 120 receives an identifier (which will be referred to as a “matching identifier”) of a matching (authentication) target (step C1).

Next, the matching request generation unit 121 in the matching request apparatus 120 generates a matching request including the received matching identifier (step C2).

The communication unit 124 in the matching request apparatus 120 transmits the matching request to the matching apparatus 140 (step C3).

The communication unit 146 in the matching apparatus 140 receives the matching request from the matching request apparatus 120 (step C4).

Next, the registered data acquisition unit 141 in the matching apparatus 140 generates a registered data request including the matching identifier included in the matching request transmitted from the matching request apparatus 120 (step C5).

The communication unit 146 in the matching apparatus 140 transmits the registered data request to the storage apparatus 130 (step C6).

Next, the communication unit 135 in the storage apparatus 130 receives the registered data request from the matching apparatus 140 (step C7).

The registered data search unit 134 in the storage apparatus 130 determines the registered data (which will also be referred to as a “target template”) including the matching identifier included in the registered data request (step C8) from the registered data stored in the registered data storage unit 133.

The communication unit 135 in the storage apparatus 130 transmits the template:

Enc(pk,1−2x[1])(=C1[1]),

. . . ,

Enc(pk,1−2x[n])(=C1[n])

Enc(pk,x[1]+ . . . +x[n])(=CC1)  (48)

to the matching apparatus 140 (step C9).

The communication unit 146 in the matching apparatus 140 receives the template from the storage apparatus 130 (step C10).

The random number generation unit 142 in the matching apparatus 140 generates an integer (a random number) S∈F_(q) in accordance with a pseudo random number generation procedure (step C11).

Preferably, the random number generation unit 142 generates a different random number S each time a matching request is made.

Next, the encrypted data generation unit 143 in the matching apparatus 140 using an additive homomorphic scalar operation rule, for the n first templates:

Enc(pk,1−2x[1])(=C1[1]),

. . . ,

Enc(pk,1−2x[n])(=C1[n])

performs a scalor operation of S: Sc1(S, Enc(pk, 1−2x[1])), . . . , Sc1(S, Enc(pk, 1−2x[n])), to generate n encrypted data (which will also be referred to as “challenge”) (step C12).

Enc(pk,S(1−2x[1]))(C2[1]),

. . .

Enc(pk,S(1−2x[n]))(C2[n])  (49)

That is, for

C1[1]=(g{circumflex over ( )}{r1[1]},g{circumflex over ( )}{(1−2x[1])}×h{circumflex over ( )}{r1[1]})=(C1[1][0],C1[1][1]),

(C1[1][0]{circumflex over ( )}S,C1[1][1]{circumflex over ( )}S)=C2[1] is obtained.

For C1[n]=(g{circumflex over ( )}{r1 [n]}, g{circumflex over ( )}{(1−2x[n])}×h{circumflex over ( )}{r1 [n] })=(C1[n][0], C1[n][1]) (=C1[n]),

(C1[n][0]{circumflex over ( )}S,C1[n][1]{circumflex over ( )}S)=C2[n] is obtained.  (50)

The communication unit 146 in the matching apparatus 140 transmits the encrypted data (C2[1], . . . , C2[n]) to the matching request apparatus 120 (step C13).

The matching request apparatus 120 receives the encrypted data transmitted from the matching apparatus 140 in step C13 (step C14).

Next, the matching target information extraction unit 122 in the matching request apparatus 120 extracts a matching target vector

Y=(y[1],y[2], . . . ,y[n])

from the authentication target biometric characteristic (step C15).

Next, the response generation unit 123 in the matching request apparatus 120, using a scalar operation and an addition of an additive homomorphic operation, from

Enc(pk,S(1−2x[1]))(C2[1]),

. . . ,

Enc(pk,S(1−2x[n]))(C2[n])

generates the following encrypted response (step C16).

(denoted as CC2)

$\begin{matrix} {{Enc}\left( {{pk},{S{\sum\limits_{i = 1}^{n}{\left( {1 - {2{x\lbrack i\rbrack}}} \right){y\lbrack i\rbrack}}}}} \right)} & (50) \end{matrix}$

That is, the response generation unit 123 in the matching request apparatus 120 generates Enc(pk, S(1−2x[1])y[1]) using a scalar operation Sc1(y[1], Enc(pk, S(1−2x[1]))). Likewise, the response generation unit 123 generates Enc(pk, S(1−2x[n])y[n]) using Sc1(y[n], Enc(pk, S(1−2x[n]))). Next, by adding these responses, the response generation unit 123 generates

Enc(pk,S((1−2x[1])y[1]+, . . . ,+(1−2x[n])y[n]))(=CC2).

Next, the communication unit 124 in the matching request apparatus 120 transmits the response CC2 to the matching apparatus 140 (step C17).

Next, the matching apparatus 140 receives the response CC2 from the matching request apparatus 120 (step C18).

Next, the encrypted distance calculation unit 144 in the matching apparatus 140 performs a scalar operation on Enc(pk, S((1−2x[1])y[1]+, . . . , (1−2x[n])y[n])) by using S{circumflex over ( )}−1 as follows.

Sc1(S{circumflex over ( )}(−1),Enc(pk,S((1−2x[1])y[1]+, . . . ,(1−2x[n])y[n])))

As a result, the encrypted distance calculation unit 144 obtains the following encrypted data.

Enc(pk,((1−2x[1])y[1]+, . . . ,(1−2x[n])y[n]))  (52)

From this encrypted data and the second template Enc(pk, x[1], . . . , x[n])=Enc(pk, D₁) received from the storage apparatus 130, the encrypted distance calculation unit 144 obtains an encrypted Hamming distance.

$\begin{matrix} {{{{Enc}\left( {{pk},{\sum\limits_{i = 1}^{n}{x\lbrack i\rbrack}}} \right)} + {{Enc}\left( {{pk},{\sum\limits_{i = 1}^{n}{\left( {1 - {2{x\lbrack i\rbrack}}} \right){y\lbrack i\rbrack}}}} \right)}} = {{{Enc}\left( {{pk},{{\sum\limits_{i = 1}^{n}{x\lbrack i\rbrack}} + {\sum\limits_{i = 1}^{n}{\left( {1 - {2{x\lbrack i\rbrack}}} \right){y\lbrack i\rbrack}}}}} \right)} = {{{Enc}\left( {{pk},{{\sum\limits_{i = 1}^{n}{x\lbrack i\rbrack}} + {\left( {1 - {2{x\lbrack i\rbrack}}} \right){y\lbrack i\rbrack}}}} \right)} = {{Enc}\left( {{pk},{d_{H}\left( {X,Y} \right)}} \right.}}}} & (53) \end{matrix}$

Next, the query generation unit 145 in the matching apparatus 140 generates a query including the encrypted distance Enc(pk, d_(H) (X, Y)) (step C20).

The communication unit 146 in the matching apparatus 140 transmits the query to the verification apparatus 150 (step C21).

Next, the communication unit 155 in the verification apparatus 150 receives the query Enc(pk, f) from the matching apparatus 140 (step C24).

Next, the query determination unit 153 in the verification apparatus 150 decrypts the encrypted distance Enc(pk, d_(H) (X, Y)) in the query by using the secret key sk.

Dec(sk,Enc(pk,d _(H)(X,Y)))=g{circumflex over ( )}{d _(H)(X,Y)}  (54)

Next, the verification result generation unit 154 in the verification apparatus 150 compares d_(H) (X, Y) with the threshold t (step C23). The verification result generation unit 154 determines whether g{circumflex over ( )}{d_(H) (X, Y)} matches any one of g{circumflex over ( )}0, g{circumflex over ( )}1, and g{circumflex over ( )}t. If g{circumflex over ( )}{d_(H)(X, Y)} matches any one of g{circumflex over ( )}0, g{circumflex over ( )}1, and g{circumflex over ( )}t, the verification result generation unit 154 determines d_(H) (X, Y)<=t and generates a verification result indicating acceptance. Otherwise, the verification result generation unit 154 determines d_(H) (X, Y)>t and generates a verification result indicating rejection (step C24).

The verification apparatus 150 outputs the calculated verification result (step C25).

The processing that the matching system 100 according to the present example embodiment performs in the matching phase is not limited to the mode illustrated as an example in FIG. 8. For example, step C11 may be performed before steps C5 to C10.

In addition, in the matching system 100 according to the first example embodiment, even when authentication is performed on the same registered vector, the processing using a random number selected in step C11 in FIG. 7 is performed. Thus, even if a communication content in the matching processing is leaked, the distance equal to the distance obtained in the matching processing when the leakage has occurred cannot be calculated or a smaller value cannot be calculated by retransmitting the leaked content or transmitting data created by using the leaked content. In the first example embodiment, when utilized for authentication in which “acceptance” is output when a distance between a registered vector and an authentication target vector is smaller than a threshold, an attacker who does not know the registered vector is not “accepted”. Namely, the first example embodiment has resistance against spoofing attacks.

In particular, the encrypted data (challenge) transmitted from the matching apparatus 140 to the matching request apparatus 120 does not include encrypted data Enc(pk, S) of a random number S. Thus, from the encrypted data Enc(pk, S(1−2x[1])), . . . , Enc(pk, S(1−2x[n])) transmitted from the matching apparatus 140 to the matching request apparatus 120, the matching request apparatus 120 cannot calculate

Enc(pk,(x[1]+ . . . +x[n])),

Enc(pk,S((x[1]+ . . . +x[n]))).

Thus, a Hamming distance between X and Y cannot be falsified, and no eavesdropper can impersonate a user.

In addition, the data received by the verification apparatus 150 having a secret key is a ciphertext of a Hamming distance between a registered vector and a matching target vector, and values of the registered vector and matching target vector are not disclosed. Thus, in the matching system 100 according to the first example embodiment, the verification apparatus can calculate a distance between the registered vector and the matching target vector, in such a condition wherein values other than a distance between the registered vector and matching target vector are not leaked to apparatuses other than the apparatuses that extract the respective vectors.

In addition, the matching system 100 according to the first example embodiment can be modified so that a Hamming distance between a registered vector and a matching target vector is not disclosed to the verification apparatus 150 having a decryption key. For example, by applying the same method as discussed in NPL 1, the matching system 100 can be modified to a scheme in which the verification apparatus 150 having the decryption key (secret key) cannot calculate the Hamming distance between the registered vector and the matching target vector. In the scheme in which the distance between the registered vector and the matching target vector is not disclosed to the verification apparatus 150 having the decryption key, since the verification apparatus 150 having the decryption key is prevented from calculating values of the registered vector even in a special situation, higher security can be achieved.

<Variation 1>

FIG. 9 illustrates variation 1 of the first example embodiment.

The basic configuration is the same as that according to the first example embodiment. The difference will hereinafter be described. Notation, such as omission of a public key pk in a registration target vector X and encryption Enc( ) is the same as that in FIG. 4.

The registration request apparatus 110 transmits, as templates, Enc(pk, x₁), . . . , Enc(pk, x_(n)) to the storage apparatus 130, instead of Enc(pk, (1−2x_(i))), . . . , Enc(pk, (1−2x_(n))) (S11A).

By performing an additive homomorphic scalar operation and an addition operation on Enc(pk, x₁), Enc(pk, x_(n)), the storage apparatus 130 calculates and holds the following encrypted data (S11B).

Enc(pk,(1−2x _(i))), . . . ,Enc(pk,(1−2x))  (55)

Enc(pk,x ₁ +, . . . ,+x _(n))  (56)

On reception of a matching request from the matching request apparatus 120 (S12), the matching apparatus 140 obtains

Enc(pk,(1−2x ₁)), . . . ,Enc(pk,(1−2x _(n))) and

Enc(pk,x ₁ +, . . . ,+x _(n))

from the storage apparatus 130 (S13). Since the subsequent processing is the same as that in FIG. 4, description thereof will be omitted.

In FIG. 5, the template generation unit 112 in the registration request apparatus 110 generates Enc(pk, x₁), . . . , Enc(pk, x_(n)).

The registration target data generation unit 132 in the storage apparatus 130 calculates

Enc(pk,(1−2x _(i)))=C1[1],

. . . ,

Enc(pk,(1−2x _(n)))=C1[n] and Enc(pk,x _(i) +, . . . ,+x _(n))=CC1

from Enc(pk, x_(i)), . . . , Enc(pk, x_(n)), generates registration target data in association with a registration identifier id,

(C1[1], . . . ,C1[n],CC1,id),

and stores the registration target data in the registered data storage unit 133. According to variation 1, the registration request apparatus 110 has less processing load.

<Variation 2>

FIG. 10 illustrates variation 2 of the first example embodiment. The basic configuration is the same as that according to the first example embodiment. The difference will hereinafter be described. Notation, such as omission of a public key pk in the registration target vector X and encryption Enc( ) is the same as that in FIG. 4.

As in variation 1, the registration request apparatus 110 transmits, as templates, Enc(pk, x₁), . . . , Enc(pk, x_(n)) to the storage apparatus 130 (S11A).

The storage apparatus 130 holds the templates.

Enc(pk,x ₁), . . . ,Enc(pk,x _(n))  (57)

On reception of a matching request from the matching request apparatus 120 (S12), the matching apparatus 140 obtains Enc(pk, x₁), . . . , Enc(pk, x_(n)) from the storage apparatus 130 (513A) and performs an additive homomorphic scalar operation and an addition operation to calculate

Enc(pk,(1−2x ₁)), . . . ,Enc(pk,(1−2x _(n))) and Enc(pk,x ₁ +, . . . ,+x _(n))  (S13B).

Since the subsequent processing is the same as that in FIG. 4, description thereof will be omitted.

Second Example Embodiment

While the first example embodiment described with reference to FIGS. 4 to 9, is safe against Semi-honest attackers, there are still spoofing attacks by attackers. In step S15 in FIG. 4, the matching apparatus 140 transmits Enc(pk, S(1−2x₁)), . . . , Enc(pk, S(1−2x_(n))) to the matching request apparatus 120.

Since the individual elements of the registration target vector X=[x₁, . . . , x_(n)]∈{0,1}^(n) are binary values, each of Enc(pk, S(1−2x₁)), . . . , Enc(pk, S(1−2x_(n))) is any one of the following data.

Enc(pk,S),Enc(pk,−S)  (58)

By giving only two tries for an arbitrary value z, Enc(pk, Sz) can be transmitted to the matching apparatus 140. The matching apparatus 140 handles Enc(pk, Sz) received from the matching request apparatus 120 as Enc(pk, D2) and transmits Enc(pk, Sz+D₁) obtained by adding Enc(pk, Sz) and Enc(pk, D₁) to the verification apparatus 150.

In this case, if the following relationship (59) is established,

$\begin{matrix} {{{Sz} + D_{1}} = {{{Sz} + {\sum\limits_{i = 1}^{b}x_{i}}} \leq t}} & (59) \end{matrix}$

the verification apparatus 150 determines acceptance.

Thus, according to the second example embodiment, instead of transmitting encrypted data Enc(pk, S(1−2x_(i))) (i=1, . . . , n) obtained by multiplication of a random number to registered templates which are transmitted from the matching apparatus 140 to the matching request apparatus 120, the matching apparatus 140 transmits a transformed value Ai of the registration vector as a challenge to the matching request apparatus 120, which is an element of a first transformed value vector A obtained by transforming the registration target binary vector X=[x₁, . . . , x_(n)] in accordance with a certain transformation formula and takes a value other than binary values, wherein an operation result of A with a second transformed vector B obtained by transforming a matching target binary vector Y=[y₁, . . . , y_(n)] (an innerproduct A·B), generates

$\begin{matrix} {\sum\limits_{i = 1}^{n}{\left( {1 - {2x_{i}}} \right)y_{i}}} & (60) \end{matrix}$

The matching request apparatus 120 calculates Enc(pk, SΣ[i=1 to n] Ai·Bi) by performing an additive homomorphic operation of the encrypted data Enc(pk, Ai) of the transformed value Ai and the transformed value Bi related the matching target binary vector Y=[y1, . . . , yn] and transmits Enc(pk, SΣ[i=1 to n] Ai·Bi) to the matching apparatus 140. Enc(pk, SΣ[i=1 to n] Ai·Bi) is equivalent to the following encrypted data.

$\begin{matrix} {{Enc}\left( {{pk},{S{\sum\limits_{i = 1}^{n}{\left( {1 - {2x_{i}}} \right)y_{i}}}}} \right)} & (61) \end{matrix}$

When the biometric information is a binary vector, spoofing attacks can be avoided. This feature according to the second example embodiment will be described below.

When the registration target vector is X=[x₁, . . . , x_(n)]∈{0,1}^(n) and the matching target vector Y=[y₁, . . . , y_(n)]∈{0,1}n, A₁, . . . , A_(n), and B₁, . . . , B_(n) satisfying the following relationship are calculated.

$\begin{matrix} \left\{ \begin{matrix} {A_{1} = {{a_{1,1} \cdot x_{1}} + {a_{1,2} \cdot x_{2}} + \ldots + {a_{1,n} \cdot x_{n}} + a_{1,{n + 1}}}} \\ {A_{2} = {{a_{2,1} \cdot x_{1}} + {a_{2,2} \cdot x_{2}} + \ldots + {a_{2,n} \cdot x_{n}} + a_{2,{n + 1}}}} \\ {\ldots\ldots} \\ {A_{n} = {{a_{n,1} \cdot x_{1}} + {a_{n,2} \cdot x_{2}} + \ldots + {a_{n,n} \cdot x_{n}} + a_{n,{n + 1}}}} \end{matrix} \right. & (62) \\ \left\{ \begin{matrix} {B_{1} = {{b_{1,1} \cdot y_{1}} + {b_{1,2} \cdot y_{2}} + \ldots + {b_{1,n} \cdot y_{n}}}} \\ {B_{2} = {{b_{2,1} \cdot y_{1}} + {b_{2,2} \cdot y_{2}} + \ldots + {b_{2,n} \cdot y_{n}}}} \\ {\ldots\ldots} \\ {B_{n} = {{b_{n,1} \cdot y_{1}} + {b_{n,2} \cdot y_{2}} + \ldots + {b_{n,n} \cdot y_{n}}}} \end{matrix} \right. & (63) \\ {{\sum\limits_{i = 1}^{n}{A_{i}B_{i}}} = {\sum\limits_{i = 1}^{n}\left( {{{- 2}x_{i}y_{i}} + y_{i}} \right)}} & (64) \end{matrix}$

The number of constraint equations is n(n+1), which is a sum of n2 about the coefficients of the individual x_(i) and y_(i) and n about the individual y_(i). An unknown number is n(2 n+1).

((a _(1,1) ,·a _(1,2) , . . . ,a _(1,n+1) ,·a _(1,n+1) ,·b _(,21) , . . . ,a _(n,n+1)),(b _(1,1) ,b _(1,2) , . . . ,b _(1,n) ,b _(2,1) , . . . ,b _(n,n)))  (65)

If b_(i,j) (i=1, . . . , n, j=1, . . . , n) are fixed, the number of unknowns is n(n+1) as follows.

(a _(1,1) ,·a _(1,2) , . . . ,a _(1,n+1) ,·a _(2,1) , . . . ,a _(n,n+1))  (66)

Since

(number of unknowns)>=(number of constraint equations),

there is a solution. In particular, if the individual b_(i,j) (i=1, . . . n, j=1, . . . , n) are fixed, the individual a_(i,j) (i=1, . . . , n, j=1, . . . , n+1) are uniquely determined.

According to the present example embodiment, the matching apparatus 140 transmits Enc(pk, SA_(i)) (i=1, . . . , n) to the matching request apparatus 120. The matching request apparatus 120 transmits the following encrypted data to the matching apparatus 140.

$\begin{matrix} {{{Enc}\left( {{pk},{S{\sum\limits_{i = 1}^{n}{A_{i}B_{i}}}}} \right)} = {{Enc}\left( {{pk},{S{\sum\limits_{i = 1}^{n}\left( {{{- 2}x_{i}y_{i}} + y_{i}} \right)}}} \right)}} & (67) \end{matrix}$

For ease of description, an example in which a two-dimensional registration target vector X^(T)=[x₁,x₂]∈{0,1}² and a two-dimensional matching target vector Y^(T)=[y₁,y₂]∈{0,1}² are used will be described. In these vectors, T denotes a transpose operator. The above formulas (62) and (63) can be expressed by using the following transformation matrixes.

$\begin{matrix} {\begin{pmatrix} A_{1} \\ A_{2} \end{pmatrix} = {{\begin{bmatrix} a_{1,1} & a_{1,2} \\ a_{2,1} & a_{2,2} \end{bmatrix}\begin{pmatrix} x_{1} \\ x_{2} \end{pmatrix}} + \begin{pmatrix} a_{1,3} \\ a_{2,3} \end{pmatrix}}} & (68) \\ {\begin{pmatrix} B_{1} \\ B_{2} \end{pmatrix} = {\begin{bmatrix} b_{1,1} & b_{1,2} \\ b_{2,1} & b_{2,2} \end{bmatrix}\begin{pmatrix} y_{1} \\ y_{2} \end{pmatrix}}} & (69) \end{matrix}$

The above formula (64) is given as follows.

$\begin{matrix} {{\sum\limits_{i = 1}^{2}{A_{i}B_{i}}} = {{{A_{1}B_{1}} + {A_{2}B_{2}}} = {{\sum\limits_{i = 1}^{2}\left( {{{- 2}x_{i}y_{i}} + y_{i}} \right)} = {{{- 2}x_{1}y_{1}} + y_{1} - {2x_{2}y_{2}} + y_{2}}}}} & (70) \end{matrix}$

By solving this, the individual coefficients are given as follows.

a _(1,1)=2b _(2,2) ·L,a _(1,2)=2b _(2,1) ·L,a _(1,3)=(b _(2,2) −b _(2,1))L,

a _(2,1)=2b _(1,2) ·L,a _(2,2)=2b _(1,1) ·L,a _(2,3)=(b _(1,1) −b _(1,2))L,  (71)

where L is a reciprocal of a determinant of

$\begin{matrix} {\begin{bmatrix} b_{1,1} & b_{1,2} \\ b_{2,1} & b_{2,2} \end{bmatrix}{L = \left( {{b_{1,1} \cdot b_{2,2}} - {b_{1,2} \cdot b_{2,1}}} \right)^{- 1}}} & (72) \end{matrix}$

Thus, it is possible to express as follows.

$\begin{matrix} {\begin{pmatrix} A_{1} \\ A_{2} \end{pmatrix} = {\left( \frac{1}{{b_{1,1} \cdot b_{2,2}} - {b_{1,2} \cdot b_{2,1}}} \right) \times \left( {{\begin{bmatrix} {{- 2}b_{2,2}} & {2b_{2,1}} \\ {2b_{1,2}} & {{- 2}b_{1,1}} \end{bmatrix}\begin{pmatrix} x_{1} \\ x_{2} \end{pmatrix}} + \begin{pmatrix} b_{2,2} & {- b_{2,1}} \\ b_{1,1} & {- b_{1,2}} \end{pmatrix}} \right)}} & (73) \end{matrix}$

In the above expression, when b_(1,1)=b_(2,2)=1, b_(1,2)=b_(2,1)=0, the following formula (74) holds.

$\begin{matrix} {\begin{pmatrix} A_{1} \\ A_{2} \end{pmatrix} = {{{\left( {- 2} \right)\begin{pmatrix} x_{1} \\ x_{2} \end{pmatrix}} + \begin{pmatrix} 1 \\ 1 \end{pmatrix}} = \begin{pmatrix} {1 - {2x_{1}}} \\ {1 - {2x_{2}}} \end{pmatrix}}} & (74) \end{matrix}$

This corresponds to a case in which n=2 according to the first example embodiment.

As a simple specific example, a case in which q=13 (message space: Fq) will be described. Assuming that

(b _(1,1) ,b _(1,2) ,b _(2,1) ,b _(2,2))=(1,3,3,7)  (75)

L=(2)⁻¹,11¹¹ mod 13=6.

(According to Fermat's little theorem, if q is a prime, g{circumflex over ( )}(q−1)=1 mod q, g·g{circumflex over ( )}(q−2)=1 mod q. Thus, the inverse is given as follows)

g{circumflex over ( )}(−1)=g{circumflex over ( )}(q−2)mod q  (76)

Thus, the following satisfies the constraint equations.

(a _(1,1) ,a _(1,2) ,a _(1,3) ,a _(2,1) a _(2,3) ,a _(2,2) ,a _(2,3))=(−84,36,24,26,−12,−12)mod 13=(7,10,11,10,11)  (77)

$\begin{matrix} {\begin{pmatrix} A_{1} \\ A_{2} \end{pmatrix} = {{{\begin{bmatrix} a_{1,1} & a_{1,2} \\ a_{2,1} & a_{2,2} \end{bmatrix}\begin{pmatrix} x_{1} \\ x_{2} \end{pmatrix}} + \begin{pmatrix} a_{1,3} \\ a_{2,3} \end{pmatrix}} = {{\begin{bmatrix} 7 & 10 \\ 10 & 1 \end{bmatrix}\begin{pmatrix} x_{1} \\ x_{2} \end{pmatrix}} + {\begin{pmatrix} 11 \\ 1 \end{pmatrix}\mspace{14mu} {mod}\mspace{11mu} 13}}}} & (78) \end{matrix}$

In this case, A₁ and A₂ vary depending per values (0, 0), (0, 1), (1, 0), (1, 1) of (x₁, x₂) (see (b) and (c) in FIG. 11). B₁ and B₂ are given as follows.

$\begin{pmatrix} B_{1} \\ B_{2} \end{pmatrix} = {{\begin{bmatrix} b_{1,1} & b_{1,2} \\ b_{2,1} & b_{2,2} \end{bmatrix}\begin{pmatrix} y_{1} \\ y_{2} \end{pmatrix}} = {\begin{bmatrix} 1 & 3 \\ 3 & 7 \end{bmatrix}\begin{pmatrix} y_{1} \\ y_{2} \end{pmatrix}\mspace{14mu} {mod}\mspace{14mu} 13}}$

FIG. 12 illustrates a configuration of the registration request apparatus 110 according to the second example embodiment. The registration request apparatus 110 includes a transformed value generation unit 114 that calculates transformed values (A₁, . . . , A_(n)) based on a binary vector

X ^(T)=[x ₁ , . . . ,x _(n)]∈{0,1}^(n)

extracted by the registration target information extraction unit 111 and preset transformation coefficients

(a _(1,1) ,·a _(1,2) , . . . ,a _(1,n+1) ,·a _(2,1) , . . . ,a _(n,n+1))

Other aspects of the basic configuration are the same as those according to the first example embodiment illustrated in FIG. 5. However, the processing performed by the transformed template generation unit 112 in the registration request apparatus 110, the registration target data generation unit 132 in the storage apparatus 130, the encrypted data generation unit 143 and encrypted distance calculation unit 144 in the matching apparatus 140, and the matching request apparatus 120 differs from that according to the first example embodiment.

FIG. 13 illustrates the registration phase. Hereinafter, step B1A added to FIG. 7 will be described. In step BlA, the transformed value generation unit 114 calculates transformed values (A_(i), . . . , A_(n)) based on the binary vector

X ^(T)=[x ₁ , . . . ,x _(n)]∈{0,1}^(n)

extracted by the registration target information extraction unit 111 and the preset transformation coefficients

(a _(1,1) ,·a _(1,2) , . . . ,a _(1,n+1) ,·a _(2,1) , . . . ,a _(n,n+1))  (B1A).

The template generation unit 112 generates, as first templates, the following encrypted data (B2).

Enc(pk,A ₁), . . . ,Enc(pk,A _(n))  (79)

In addition, the template generation unit 112 generates, as a second template, the following encrypted data (B3).

Enc(pk,x ₁), . . . ,Enc(pk,x _(n))  (80)

The template generation unit 112 combines these templates (B4) and transmits the combined template to the storage apparatus 130 (B5).

FIG. 14 illustrates an operation sequence according to the second example embodiment. FIG. 14 uses the notation in FIGS. 4, 9, etc. The public key and the secret key (S20) are generated as in S10 in FIGS. 4, 9, etc.

As described above, the second example embodiment assumes that the n(n+1) transformation coefficients

(a _(1,1) ,a _(1,2) , . . . ,a _(1,n+1) ,a _(2,1) , . . . ,a _(n,n+1))

are preset in the registration request apparatus 110. In addition, the n{circumflex over ( )}2 transformation coefficients

(b _(1,1) ,b _(1,2) , . . . ,b _(1,n) ,b _(2,1) , . . . ,b _(n,n))

are preset in the matching request apparatus 120.

The transformed value generation unit 114 in the registration request apparatus 110 calculates transformed values (A₁, . . . , A_(n)) based on the binary vector

X ^(T)=[x ₁ , . . . ,x _(n)]∈{0,1}^(n)

extracted by the registration target information extraction unit 111 and the preset transformation coefficients

(a _(1,1) ,a _(1,2) , . . . ,a _(1,n+1) ,a _(2,1) , . . . ,a _(n,n+1)).

Next, the template generation unit 112 in the registration request apparatus 110 generates, as the first templates, the following encrypted data of A_(i) (i=1, . . . , n).

Enc(pk,A ₁), . . . ,Enc(pk,A _(n))  (81)

In addition, the template generation unit 112 generates, as the second templates, the following encrypted data.

Enc(pk,x ₁), . . . ,Enc(pk,x _(n))  (82)

Next, the template generation unit 112 in the registration request apparatus 110 generates the following template from the first and second templates.

(Enc(pk,A ₁), . . . ,Enc(pk,A _(n)),Enc(pk,x ₁) . . . ,Enc(pk,x _(n)))  (83)

The template generation unit 112 transmits the generated template to the storage apparatus 130 via the communication unit 113 (S21).

When the storage apparatus 130 receives the template, the identifier management unit 131 generates a registration identifier id and the registration target data generation unit 132 associates the template with the registration identifier id and stores the following resultant data in the registered data storage unit 133.

((Enc(pk,A ₁), . . . ,Enc(pk,A _(n)),Enc(pk,x ₁) . . . ,Enc(pk,x ₁)) . . . ,Enc(pk,x _(n))),id)  (84)

When the communication unit 146 in the matching apparatus 140 receives a matching request from the matching request apparatus 120 (S22), the registered data acquisition unit 141 receives

((Enc(pk,A ₁), . . . ,Enc(pk,A _(n)),Enc(pk,x ₁) . . . ,Enc(pk,x _(n))),id)

from the storage apparatus 130 (S23A).

The matching apparatus 140 generates encrypted data Enc(pk, Σ[i=1 to n]x_(i)) of a sum of the elements {xi} with Enc(pk, x₁), . . . , Enc(pk, x_(n)) being kept in an encrypted state (S23B).

The random number generation unit 142 in the matching apparatus 140 generates a random number S∈F_(q) (S24)

Next, the random number generation unit 142 performs a scalar operation of the random number S to the encrypted data Enc(pk, A_(i)), Enc(pk, A_(n)) of the transformed values to calculate

Enc(pk,SA ₁), . . . ,Enc(pk,SA _(n))  (85)

The random number generation unit 142 transmits the calculated encrypted data to the matching request apparatus 120 via the communication unit 146 (S25).

The values of Enc(pk, A_(i)) (i=1, . . . , n) vary depending on a combination of the values of (x₁, . . . x_(n)). Thus, it is difficult for attackers to estimate Enc(pk, S) from Enc(pk, S·A_(i)) (i=1, . . . , n) transmitted from the matching apparatus 140 to the matching request apparatus 120, making it difficult to conduct spoofing attacks.

The response generation unit 123 in the matching request apparatus 120 calculates the following formula (86) from {bi, j} (i, j=1, . . . , n) and a binary vector Y=[y₁, . . . ,y_(n)]∈{0,1}^(n) extracted by the matching target information extraction unit 122.

$\begin{matrix} {{Bi} = {\sum\limits_{j = 1}^{n}{{b_{i,j} \cdot x_{j}}\mspace{14mu} \left( {{i = 1},\ldots \;,n} \right)}}} & (86) \end{matrix}$

By using an additive homomorphic addition and a scalar operation, the response generation unit 123 in the matching request apparatus 120 performs a scalar operation Sc1(B_(i), Enc(pk, SA_(i))) (i=1, . . . , n) in an encrypted state of data (challenge) Enc(pk, A_(i)) (i=1, . . . , n) received from the matching apparatus 140, to calculate the following encrypted data

Enc(pk,SA ₁ ·B ₁), . . . ,Enc(pk,SA _(n) ·B _(n))  (87)

By adding these items of encrypted data in an encrypted state, the response generation unit 123 calculates:

$\begin{matrix} {{\sum\limits_{i = 1}^{n}{{Enc}\left( {{pk},{{SA}_{i} \cdot B_{i}}} \right)}} = {{Enc}\left( {{pk},{S{\sum\limits_{i = 1}^{n}{A_{i} \cdot B_{i}}}}} \right)}} & (88) \end{matrix}$

The response generation unit 123 in the matching request apparatus 120 transmits

$\begin{matrix} {{Enc}\left( {{pk},{S{\sum\limits_{i = 1}^{n}{A_{i} \cdot B_{i}}}}} \right)} & \; \end{matrix}$

to the matching apparatus 140 via the communication unit 124 as a response to the challenge (S26).

The encrypted distance calculation unit 144 in the matching apparatus 140 applies a scalar operation of the reciprocal S{circumflex over ( )}(−1)(S{circumflex over ( )}(q−2) mod q) of the random number S to

${Enc}\left( {{pk},{S{\sum\limits_{i = 1}^{n}{A_{i} \cdot B_{i}}}}} \right)$

to calculate the following encrypted data.

$\begin{matrix} {{Enc}\left( {{pk},{\sum\limits_{i = 1}^{n}{A_{i} \cdot B_{i}}}} \right)} & (89) \end{matrix}$

where the following holds.

$\begin{matrix} {{\sum\limits_{i = 1}^{n}{A_{i} \cdot B_{i}}} = {{\sum\limits_{i = 1}^{n}\left( {{{- 2}x_{i}y_{i}} + y_{i}} \right)} = D_{1}}} & (90) \end{matrix}$

From the calculated D₁ and the second template received from the storage apparatus 130, the encrypted distance calculation unit 144 in the matching apparatus 140 calculates the encrypted data of a Hamming distance between the binary vectors X and Y with the encrypted data being kept in an encrypted state.

$\begin{matrix} {{{Enc}\left( {{pk},{\sum\limits_{i = 1}^{n}x_{i}}} \right)} = {{Enc}\left( {{pk},D_{2}} \right)}} & (91) \end{matrix}$

$\begin{matrix} {{{{Enc}\left( {{pk},{\sum\limits_{i = 1}^{n}{A_{i} \cdot B_{i}}}} \right)} + {{Enc}\left( {{pk},{\sum\limits_{i = 1}^{n}x_{i}}} \right)}} = {{{{Enc}\left( {{pk},{\sum\limits_{i = 1}^{n}\left( {{{- 2}x_{i}y_{i}} + y_{i}} \right)}} \right)} + {{Enc}\left( {{pk},{\sum\limits_{i = 1}^{n}x_{i}}} \right)}} = {{{Enc}\left( {{pk},{{\sum\limits_{i = 1}^{n}\left( {{{- 2}x_{i}y_{i}} + y_{i}} \right)} + {\sum\limits_{i = 1}^{n}x_{i}}}} \right)} = {{{Enc}\left( {{pk},{\sum\limits_{i = 1}^{n}\left( {\left( {{{- 2}x_{i}y_{i}} + y_{i}} \right) + x_{i}} \right)}} \right)} = {{Enc}\left( {{pk},{d_{H}\left( {X,Y} \right)}} \right)}}}}} & (92) \end{matrix}$

The matching apparatus 140 transmits the encrypted data Enc(pk, d_(H) (X, Y)) of the Hamming distance between the binary vectors X and Y to the verification apparatus 150 (S27). The verification apparatus 150 decrypts the encrypted data Enc(pk, d_(H) (X, Y)) using the secret key sk (Dec(sk, Enc(pk, d_(H) (X, Y)))), determines whether the decrypted result is less than or equal to a threshold t (S28), and outputs a verification result (S29).

<Variation 1>

FIG. 15 illustrates variation 1 of the above second example embodiment. According to the above second example embodiment, the registration request apparatus 110 calculates the transformed values A₁, . . . , A_(n) and transmits the encrypted data Enc(pk, A₁), . . . , Enc(pk, A_(n)) of the transformed values to the storage apparatus 130 as the first templates. According to variation 1, the template generation unit 112 in the registration request apparatus 110 does not transmit the encrypted data Enc(pk, A₁), . . . , Enc(pk, A_(n)) of the transformed values [A₁, . . . A_(n)] to the storage apparatus 130. As in the first example embodiment, the template generation unit 112 in the registration request apparatus transmits the encrypted data (first template) Enc(pk, x₁), . . . , Enc(pk, x_(n)) of the n elements x₁, . . . , x_(n) to the storage apparatus 130 (S21).

The registration request apparatus 110 has the same configuration as that illustrated in FIG. 5. Other aspects of the basic configuration are the same as those according to the first example embodiment illustrated in FIG. 5. However, the processing performed by the template generation unit 112 in the registration request apparatus 110, the registration target data generation unit 132 in the storage apparatus 130, the encrypted data generation unit 143 and the encrypted distance calculation unit 144 in the matching apparatus 140, and the matching request apparatus 120 differs from that according to the first example embodiment.

The communication unit 135 in the storage apparatus 130 receives the first templates from the registration request apparatus 110. The registration target data generation unit 132 stores the first template in the registered data storage unit 133 in association with a registration identifier id given by the identifier management unit 131.

In addition, the registration target data generation unit 132 in the storage apparatus 130 generates the encrypted data

${Enc}\left( {{pk},{\sum\limits_{i = 1}^{n}\; X_{i}}} \right)$

of a sum of the elements {x_(i)} from the encrypted data of n elements x₁, . . . , x_(i), of the n-dimensional binary vector X

Enc(pk,x ₁), . . . ,Enc(pk,x _(n))  (93)

in an encrypted state.

The registration target data generation unit 132 in the storage apparatus 130 calculates, from the group of transformation coefficients

(a _(1,1) ,·a _(1,2) , . . . ,a _(1,n+1) ,·a _(2,1) , . . . ,a _(n,n+1))

which are set in the storage apparatus 130, the encrypted data

Enc(pk,A ₁), . . . ,Enc(pk,A _(n))

of the transformed values A₁, . . . , A_(n) with n elements x₁, . . . , x_(n) of the n-dimensional binary vector X in an encrypted state (S21B).

Enc(pk, a_(i,j) x_(i)) (j=1, . . . , n) is calculated by performing a scalar operation Sc1(a_(i,j), Enc(pk, x_(j))) (j=1, . . . , n) on the encrypted data Enc(pk, x_(j)). In addition, the registration target data generation unit 132 in the storage apparatus 130 calculates Enc(pk, a_(i,n+i)) and adds these encrypted data in an encrypted state, to calculate encrypted data Enc(pk, A_(i)) (i=1, . . . , n). The registration target data generation unit 132 stores the calculated encrypted data Enc(pk, A_(i)) (i=1, . . . , n) in the registered data storage unit 133 (S21B).

Enc(pk,A ₁)=Enc(pk,a _(1,1) ·x _(i))+, . . . ,Enc(pk,a _(1,n) ·x _(n))+Enc(pk,a _(1,n+1))

. . . ,

Enc(pk,A _(n))=Enc(pk,a _(n,1) ·x _(i))+, . . . ,Enc(pk,a _(n,n) ·x _(n))+Enc(pk,a _(n,n+1))  (94)

When the matching apparatus 140 receives a matching request from the matching request apparatus 120, the registered data acquisition unit 141 receives Enc(pk, A₁), . . . , Enc(pk, A_(n)) and the encrypted data (second template)

${{Enc}\left( {{pk},{\sum\limits_{i = 1}^{n}\; X_{i}}} \right)}\mspace{14mu} {of}\mspace{14mu} {\sum\limits_{i = 1}^{n}X_{i}}$

from the storage apparatus 130 (S23).

The random number generation unit 142 in the matching apparatus 140 generates a random number S (S24). Next, the encrypted data generation unit 143 calculates Enc(pk, SA₁), . . . , Enc(pk, SA_(n)) by performing an additive homomorphic scalar operation and transmits the calculated encrypted data to the matching request apparatus 120 via the communication unit 146 (S25).

The response generation unit 123 in the matching request apparatus 120 calculates from the set n{circumflex over ( )}2 transformation coefficients

(b _(1,1) ,b _(1,2) , . . . ,b _(1,n) ,b _(2,1) , . . . ,b _(n,n))

and the binary vector

Y=[y ₁ , . . . ,y _(n)]∈{0,1}^(n)

extracted by the matching target information extraction unit 122,

$\begin{matrix} {{B\; i} = {\sum\limits_{j = 1}^{n}{{b_{i,j} \cdot y_{j}}\mspace{14mu} \left( {{i = 1},\ldots \mspace{14mu},n} \right)}}} & (95) \end{matrix}$

The response generation unit 123 in the matching request apparatus 120 calculates by performing a scalar operation and an addition operation based on Enc(pk, SA₁), . . . , Enc(pk, SA_(n)) transmitted from the matching apparatus 140 and the transformed values B₁, . . . , B_(n).

$\begin{matrix} {{{Enc}\left( {{pk},{S{\sum\limits_{i = 1}^{n}\; {A_{i} \cdot B_{i}}}}} \right)}y} & (96) \end{matrix}$

The response generation unit 123 transmits the calculated encrypted data to the matching apparatus 140 via the communication unit 124 as a response (S26). Since the subsequent operation sequence is the same as that in FIG. 14, description thereof will be omitted.

<Variation 2>

In the above variation 1, the storage apparatus 130 generates the encrypted data Enc(pk, A₁) (i=1, . . . , n) of the transformed values A₁, . . . A_(n) from the first templates Enc(pk, x_(i)) (i=1, . . . , n) transmitted from the registration request apparatus 110. In variation 2, the matching apparatus 140 creates the encrypted data Enc(pk, A₁) (i=1, . . . , n) of the transformed values A1, . . . , An, when a challenge is created. The basic configuration of variation 2 is the same as that according to the first example embodiment illustrated in FIG. 5. However, the processing performed by the template generation unit 112 in the registration request apparatus 110, the registration target data generation unit 132 in the storage apparatus 130, the encrypted data generation unit 143 and the encrypted distance calculation unit 144 in the matching apparatus 140, and the matching request apparatus 120 differs from that according to the first example embodiment.

FIG. 16 illustrates an operation according to variation 2. An operation according to variation 2 will be described with reference to FIGS. 16 and 5.

As in the first example embodiment, the registration request apparatus 110 transmits the encrypted data Enc(pk, xi) (i=1, . . . , n) (first templates) of the n elements {x_(i)} (i=1, . . . , n) of the n-dimensional binary vector X to the storage apparatus 130 (S21).

The storage apparatus 130 holds the first and second templates in association with a registration id.

On reception of a matching request from the matching request apparatus 120 (S22), the registered data acquisition unit 141 in the matching apparatus 140 receives the encrypted data Enc(pk, x₁), . . . , Enc(pk, x_(n)) of the n elements {x_(i)} of the n-dimensional binary vector X from the storage apparatus 130 (S23A).

The encrypted data generation unit 143 in the matching apparatus 140 generates encrypted data

${{Enc}\left( {{pk},{\sum\limits_{i = 1}^{n}\; X_{i}}} \right)}\mspace{11mu}$

of a sum of the elements {xi} with Enc(pk, x₁), . . . , and Enc(pk, x_(n))being kept in an encrypted state (S23A).

The encrypted data generation unit 143 in the matching apparatus 140 generates the encrypted data Enc(pk, A1), Enc(pk, An) of the transformed values A1, . . . , An from the encrypted registered data Enc(pk, x₁), . . . , Enc(pk, x_(n)) of the n elements x₁, . . . , xn and the set group of transformation coefficients

(a _(1,1) ,·a _(1,2) , . . . ,a _(1,n+1) ,a _(2,1) , . . . ,a _(n,n+1))  (S24B).

Enc(pk,A ₁)=Enc(pk,a _(1,1) ·x ₁)+, . . . ,+a _(1,n)Enc(pk,a _(1,n) ·x _(n))+Enc(pk,a _(1,n+1))

. . .

Enc(pk,A _(n))=Enc(pk,a _(n,1) ·x ₁)+, . . . ,+a _(n,n)Enc(pk,a _(n) ,x _(n))+Enc(pk,a _(n,n+1))  (97)

The matching apparatus 140 generates a random number S (S24), calculates

Enc(pk,SA ₁), . . . ,Enc(pk,SA _(n))

using an additive homomorphic scalar operation, and transmits Enc(pk, SA₁), . . . , Enc(pk, SA_(n)) to the matching request apparatus 120 via the communication unit 146 (S25).

The matching request apparatus 120 calculates from the set n{circumflex over ( )}2 transformation coefficients

(b _(1,1) ,b _(1,2) , . . . ,b _(1,n) ,b _(2,1) , . . . ,b _(n,n))

and the binary vector

Y=[y ₁ , . . . ,y _(n)]∈{0,1}^(n).

$\begin{matrix} {{B\; i} = {\sum\limits_{j = 1}^{n}{{b_{i,j} \cdot y_{j}}\mspace{14mu} \left( {{i = 1},\ldots \mspace{14mu},n} \right)}}} & (98) \end{matrix}$

In addition, from Enc(pk, SA1), . . . , Enc(pk, SAn) and the transformed values B1, . . . , Bn, the matching request apparatus 120 calculates the following encrypted data.

$\begin{matrix} {{Enc}\left( {{pk},{S{\sum\limits_{i = 1}^{n}\; {A_{i} \cdot B_{i}}}}} \right)} & (99) \end{matrix}$

As a response, the matching request apparatus 120 transmits the encrypted data to the matching apparatus 140 (S26). Since the subsequent operation is the same as that according to variation 1 in FIG. 14, description thereof will be omitted.

<Variation 3>

In variation 3, the transformation coefficients

(a _(1,1) ,·a _(1,2) , . . . ,a _(1,n+1) ,a _(2,1) , . . . ,a _(n,n+1))

are not preset in the registration request apparatus 110. The n{circumflex over ( )}2 transformation coefficients

(b _(1,1) ,b _(1,2) , . . . ,b _(1,n) ,b _(2,1) , . . . ,b _(n,n))

are not preset in the matching request apparatus 120, either.

In variation 3, each time a challenge is created, the matching apparatus 140 creates the transformation coefficients (i=1, . . . , n, j=1, . . . , n+1).

FIG. 17 illustrates a configuration example of the matching apparatus 140 according to variation 3. As illustrated in FIG. 17, the matching apparatus 140 further includes a transformation coefficient generation unit 147 that generates the transformation coefficients {a_(i,j)} (i=1, . . . , n, j=1, . . . , n+1) when a challenge is created.

The encrypted data generation unit 143 calculates the transformed values A₁, . . . , A_(n), based on the encrypted data Enc(pk, x_(i)) (i=1, . . . , n) of the n elements x_(i) obtained by the registered data acquisition unit 141 and the created transformation coefficients {a_(i, j)} (i=1, . . . , n, j=1, . . . , n+1) and transmits encrypted data to the matching request apparatus 120 as a challenge.

When transmitting a challenge to the matching request apparatus 120, the matching apparatus 140 transmits the transformation coefficients (a second group of transformation coefficients) {b_(i,j)} (i, j=1, . . . , n) used for calculation of the transformation coefficients (a first group of transformation coefficients) {a_(i,j)} (i=1, . . . n, j=1, . . . , n+1) to the matching request apparatus 120.

FIG. 18 illustrates the matching phase according to variation 3. The difference from FIG. 8 and variation 1 will be described.

The transformation coefficient generation unit 147 in the matching apparatus 140 generates the transformation coefficients {a_(i,j)} (i=1, . . . , n, j=1, . . . , n+1) each time a challenge is generated (C11A).

The encrypted data generation unit 143 in the matching apparatus 140 generates the encrypted data Enc(pk, A₁), . . . , ENc(pk, A_(n)) of the transformed values with the elements {x_(i)} being kept in an encrypted state, based on the transformation coefficients {a_(i,j)} (i=1, . . . , n, j=1, . . . , n+1) and Enc(pk, x₁), . . . , Enc(pk_(n)) (C11B).

The random number generation unit 142 in the matching apparatus 140 generates a random number S and performs a scalar operation of the random number S to the encrypted data of the transformed values, to generate encrypted data Enc(pk, SA1), . . . , ENc(pk, SAn) (C12). The matching apparatus 140 transmits the generated encrypted data Enc(pk, SA₁), . . . , ENc(pk, SA_(n)) and the n{circumflex over ( )}2 transformation coefficients {b_(i,j)} (i, j=1, . . . , n) to the matching request apparatus 120 (C13).

FIG. 19 illustrates an overall operation sequence according to variation 3. The registration request apparatus 110 transmits the first templates formed by the encrypted data Enc(pk, x_(i)) (i=1, . . . , n) of the n elements {x_(i)} of the registration target binary vector X=[x₁, . . . , x_(n)] to the storage apparatus 130 (S21).

The storage apparatus 130 holds the first templates in association with a registration identifier id.

On reception of a matching request from the matching request apparatus 120 (S22), the registered data acquisition unit 141 in the matching apparatus 140 receives the encrypted data Enc(pk, x₁), . . . , Enc(pk,x_(n)) of the n elements {x_(i)} of the binary vector X from the storage apparatus 130 (S23).

The encrypted data generation unit 143 in the matching apparatus 140 generates the encrypted data

${Enc}\left( {{pk},{\sum\limits_{i = 1}^{n}\; X_{i}}} \right)$

of a sum of the n elements {xi} of the binary vector X with the encrypted data being kept in an encrypted state Enc(pk, x₁), . . . , Enc(pk, x_(n)) of the n elements {x_(i)} of the binary vector X (S23A).

The transformation coefficient generation unit 147 in the matching apparatus 140 generates the transformation coefficients {a_(i,j)} (i=1, . . . , n, j=1, . . . , n+1) each time it generates a challenge (S24A). Thus, there may be a case where the transformation coefficients vary on a per a challenge basis. The transformation coefficients {a_(i,j)} (i=1, . . . , n, j=1, . . . , n+1) are calculated based on {b_(i,j)} (i=1, . . . , n). The transformation coefficient generation unit 147 in the matching apparatus 140 may set different values for the transformation coefficients {b_(i,j)} (i=1, . . . , n) each time it generates a challenge.

The encrypted data generation unit 143 in the matching apparatus 140, based on the transformation coefficients {a_(i,j)} (i=1, . . . , n, j=1, . . . , n+1) and the registered encrypted data Enc(pk, x₁), . . . , Enc(pk, x_(n)) with Enc(p, x_(i))(i=1, . . . , n) being kept in an encrypted state, generates

Enc(pk,A ₁), . . . ,ENc(pk,A _(n))  (100)

(S24B)

The random number generation unit 142 in the matching apparatus 140 generates a random number S (S24), calculates Enc(pk, SA₁), . . . , ENc(pk, SA_(n)), and transmits Enc(pk, SA₁), . . . , Enc(pk, SA_(n)) and the n{circumflex over ( )}2 transformation coefficients {b_(i,j)} (i, j=1, n) to the matching request apparatus 120 (S25).

The matching request apparatus 120 calculates the following formula (101) from the n{circumflex over ( )}2 transformation coefficients

(b _(1,1) ,b _(1,2) , . . . ,b _(1,n) ,b _(2,1) , . . . ,b _(,nn))

transmitted from the matching apparatus 140 and the binary vector

Y=[y ₁ , . . . ,y _(n)]∈{0,1}^(n).

$\begin{matrix} {{B\; i} = {\sum\limits_{j = 1}^{n}{{b_{i,j} \cdot y_{j}}\mspace{14mu} \left( {{i = 1},\ldots \mspace{14mu},n} \right)}}} & (101) \end{matrix}$

The matching request apparatus 120 calculates, based on Enc(pk, SA_(i)), . . . , Enc(pk, SA_(n)) and the transformed values B₁, . . . , B_(n),

$\begin{matrix} {{Enc}\left( {{pk},{S{\sum\limits_{i = 1}^{n}\; {A_{i} \cdot B_{i}}}}} \right)} & (102) \end{matrix}$

Next, the matching request apparatus 120 transmits this encrypted data to the matching apparatus 140 as a response (S26). Since the processing in which the matching apparatus 140 transmits a query when receiving the response as expressed in the above formula (102) (S27) and the processing that the verification apparatus 150 performs when receiving the query from the matching apparatus 140 (S28 and S29) are the same as those according to variation 2, description thereof will be omitted.

As in the first example embodiment, according the second example embodiment and the individual variations, the registration request apparatus 110 may generate the encrypted data

${Enc}\left( {{pk},{\sum\limits_{i = 1}^{n}\; X_{i}}} \right)$

of a sum of the n elements {x_(i)} of the registration target n-dimensional binary vector X and transmit the encrypted data to the storage apparatus 130.

Third Example Embodiment

According to the above first and second example embodiments, a decryptor receives and decrypts a ciphertext of a distance and determines whether the distance is less than or equal to a threshold t. When the Modified-Elgamal encryption is used and the decryption algorithm outputs Dec(sk, Enc(pk, m))=g{circumflex over ( )}m, in stead of a message, the decryptor determines whether the decrypted value matches any one of 1, g, g{circumflex over ( )}2, g{circumflex over ( )}3, . . . , and g{circumflex over ( )}t.

When the elliptic Elgamal encryption is used and the decryption algorithm outputs Dec(sk, Enc(pk, m))=m(*)G, in stead of a message, the decryptor may determine whether the decrypted value matches any one of O, G, 2(*)G, 3(*)G, . . . , and t(*)G. When the decryption algorithm outputs a message, the decryptor may determine whether the decrypted value matches any one of 0, 1, 2, 3, . . . , and t.

In the matching (authentication) processing, if y1, . . . , yi−1, yi+1, . . . , yn=0 and yi=α are used as y1, . . . , yn, the following Hamming distance is calculated.

$\begin{matrix} {{d_{H}\left( {X,Y} \right)} = \left\{ \begin{matrix} {{{\sum\limits_{i = 1}^{n}\; x_{i}} + \alpha} \approx {\frac{n}{2} + \alpha}} & \left( {x_{i} = 0} \right) \\ {{{\sum\limits_{i = 1}^{n}\; x_{i}} - \alpha} \approx {\frac{n}{2} - \alpha}} & \left( {x_{i} = 1} \right) \end{matrix} \right.} & (103) \end{matrix}$

This is because the following relationship holds if an individual x_(i) (i=1, . . . , n) is assumed to take 0 or 1 with a probability of about 50%.

$\begin{matrix} {{\sum\limits_{i = 1}^{n}x_{i}} \approx \frac{n}{2}} & (104) \end{matrix}$

By setting α to satisfy the following relationship,

$\begin{matrix} {0 \leq {\frac{n}{2} - \alpha} \leq t < {\frac{n}{2} + \alpha}} & (105) \end{matrix}$

acceptance is outputted with a probability of about 50% based on the values of x_(i). In addition, from a result of acceptance/rejection determined by the verification apparatus 150, a value of x_(i) can be determined. Namely, when the verification apparatus 150 determines acceptance, x_(i)=1. When the verification apparatus 150 determines rejection, x_(i)=0.

Thus, if an attacker repeats this try on each i=1, . . . , n, the attacker is able to know the registered biometric information x₁, . . . , x_(n). Thus, in the first and second example embodiments, 1: N authentication cannot be performed. A third example embodiment is configured to handle 1: N authentication.

In addition, the third example embodiment includes a function of determining whether values other than 0 or 1 have been inputted as the matching target vector Y=[y₁, . . . , y_(n)] in the matching phase.

y _(i)∈{0,1}

⇔y _(i)(y _(i)−1)=0

⇔(2y _(i)−1)²=4y _(i) ²−4y _(i)+1=4y _(i)(4y _(i)−1)+1=1  (106)

In addition, as described below, whether x_(i)=y_(i) can be determined by using (2y_(i)−1).

$\begin{matrix} \begin{matrix} {{\left( {{2x_{i}} - 1} \right)\left( {{2y_{i}} - 1} \right)} = \left( {{4\; x_{i}y_{i}} - {2\; x_{i}} - {2\; y_{i}} + 1} \right)} \\ {= {{{- 2}\left( {x_{i} + y_{i} - {2\; x_{i}y_{i}}} \right)} + 1}} \\ {= \left\{ \begin{matrix} {{{{- 2}\; y_{i}} + 1},} & {{{if}\mspace{14mu} x_{i}} = 0} \\ {{{2\; y_{i}} - 1},} & {{{if}\mspace{14mu} x_{i}} = 1} \end{matrix} \right.} \\ {= \left\{ \begin{matrix} 1 & {{{{if}\mspace{14mu} y_{i}} \in \left\{ {0,1} \right\}},{x_{i} = y_{i}}} \\ {- 1} & {{{{if}\mspace{14mu} y_{i}} \in \left\{ {0,1} \right\}},{x_{i} \neq y_{i}}} \\ {{ot}\; {\bullet {ers}}} & {{{if}\mspace{14mu} y_{i}} \notin \left\{ {0,1} \right\}} \end{matrix} \right.} \end{matrix} & (107) \end{matrix}$

(2x_(i)−1)(2y_(i)−1) assumes

1 if x_(i)=y_(i) and y_(i) is 0 or 1;

−1 if y_(i)=0 and x_(i)=1 or if y_(i)=1 and x_(i)=0; and

a value other than 1 and −1 if y_(i) is a value other than 0 or 1.

The count number of i where x_(i)=y_(i) does not hold (the count number of mismatches between the elements x_(i) and y_(i) in the same index number of the vectors X and Y) may be set as the Hamming distance d_(H) (X, Y).

FIG. 20 illustrates a configuration of the matching apparatus 140 and the verification apparatus 150 according to third example embodiment. The registration request apparatus 110 and the matching request apparatus 120 have the same basic configuration as that illustrated in FIG. 5. However, the processing of the individual parts differs from that according to the first example embodiment. The third example embodiment is applicable to 1:N authentication.

The matching apparatus 140 includes a hash value generation section 148 in addition to the configuration illustrated in FIG. 5.

On reception of a matching request from the matching request apparatus 120, the registered data acquisition unit 141 in the matching apparatus 140 receives encrypted data {Enc(pk, (2x_(i)−1))} (i=1, . . . , n) stored in the storage apparatus 130 in association with the registration identifier id.

The random number generation unit 142 in the matching apparatus 140 generates random numbers a_(i), b_(i), and r_(i).

The encrypted data generation unit 143 in the matching apparatus 140 transmits the encrypted data Enc(pk, b₁) (i=1, . . . , n) of the random number b_(i) (i=1, . . . , n) to the matching request apparatus 120. The encrypted data transmitted to the matching request apparatus 120 does not depend on the registered data (template). Thus, 1: N authentication can be performed.

The response generation unit 123 in the matching request apparatus 120 generates, from Enc(pk, (2x_(i)−1)) received from the storage apparatus 130, Enc(pk, b_(i) (2y_(i))−1) (i=1, . . . , n) transmitted from the matching request apparatus 120, and the random numbers a_(i), b_(i), and r_(i), the following encrypted data.

Enc(pk,a _(i)(2x _(i)−1))(i=1, . . . ,n),

Enc(pk,b _(i) r _(i)(2y _(i)−1))(i=1, . . . ,n)  (108)

The hash value generation section 148 calculates the following hash values of the products a_(i)b_(i)r_(i) (mod q) of the random numbers a_(i), b_(i), and r_(i)(i=1, . . . , n).

H(a _(i) b _(i) r _(i))  (109)

The query generation unit 145 generates a query including the encrypted data Enc(pk, a_(i)(2x_(i)−1)) and Enc(pk, b_(i)r_(i)(2y_(i)−1)) (i=1, . . . , n), and the hash values H(a_(i)b_(i)r_(i)) (i=1, . . . , n) and transmits the query to the verification apparatus 150 via the communication unit 146. H denotes a one-way hash function. In the transmission of the encrypted data Enc(pk, a_(i)(2x_(i)−1)) and Enc(pk, b_(i)r_(i)(2y_(i)−1)) (i=1, . . . , n), the query generation unit 145 may shuffle the sequence relating to an index i.

A decryption section 1531 in the query determination unit 153 in the verification apparatus 150 decrypts the encrypted data Enc(pk, a_(i)(2x_(i)−1)) and Enc(pk, b_(i)r_(i)(2y_(i)−1)) (i=1, . . . , n) by using the secret key sk and calculates the following.

z _(a)=Dec(sk,Enc(pk,a _(i)(2x _(i)−1)))

z _(b)=Dec(sk,Enc(pk,b _(i) r _(i)(2y _(i)−1)))  (110)

In addition, a hash value generation section 1532 in the query determination unit 153 in the verification apparatus 150 calculates hash values H(z_(a) z_(b)) of the products of z_(a) and z_(b).

A mismatching determination section 1533 in the query determination unit 153 in the verification apparatus 150 determines whether a count number of mismatched i between the calculated hash values H(z_(a)z_(b)) and the hash values H(a_(i)b_(i)r_(i)) received from the matching apparatus 140 is less than or equal to t.

If the count number of mismatches is less than or equal to t, the verification result generation unit 154 determines acceptance. Otherwise, the verification result generation unit 154 determines rejection.

Z _(a) z _(b) =a _(i) b _(i) r _(i)(2x _(i)−1)(2y _(i)−1)  (111)

z_(a) z_(b)=a_(i)b_(i)r_(i), if y_(i) is 0 or 1 and y_(i)=x_(i); z_(a) z_(b)=−a_(i)b_(i)r_(i), if y_(i) is 0 or 1 and y_(i)≠x_(i); and z_(a) z_(b) is a value other than a_(i)b_(i)r_(i) or −a_(i)b_(i)r_(i), if y_(i) is a value other than 0 or 1.

Thus, if the following relationship holds,

H(z _(a) z _(b))=H(a _(i) b _(i) r _(i))  (112)

y _(i) =x _(i) and y _(i)=0 or 1.

A case in which the following relationship does not hold (hash value H(z_(a) z_(b))≠H(a_(i)b_(i)r_(i))) is a case in which, while y_(i) is 0 or 1, y_(i) is not equal to x_(i) or y_(i) is a value other than 0 or 1.

Thus, when the count number of mismatches in the above Expression (112) regarding i=1, . . . , n is less than or equal to the threshold t, acceptance is determined.

Even when the product a_(i)b_(i)r_(i) of the random numbers generated by the matching apparatus 140 are encrypted by using the public key pk and encrypted data of the product a_(i)b_(i)r_(i) is transmitted to the verification apparatus 150, the verification apparatus 150 can decrypt the products by using the secret key sk. Accordingly, the hash value of a_(i) b_(i) r_(i) is transmitted to the verification apparatus 150. It is difficult to reversely calculate an input u from a hash value v(v=H(u)). Thus, even when an attacker attempts eavesdropping, the attacker cannot read the content.

FIG. 21 illustrates the processing in the matching phase according to the third example embodiment. On reception of a matching request from the matching request apparatus 120 (C4), the registered data acquisition unit 141 in the matching apparatus 140 receives the encrypted data Enc(pk, (2xi−1)) (i=1, . . . , n) stored in association with the corresponding Id from the storage apparatus 130 (C4 to C10). The random number generation unit 142 in the matching apparatus 140 generates the random numbers a_(i), b_(i), and r_(i) (C11).

The encrypted data generation unit 143 in the matching apparatus 140 generates encrypted data Enc(pk, b_(i)) (i=1, . . . , n) of the random numbers b_(i) (i=1, . . . , n) (C12) and transmits the encrypted data to the matching request apparatus 120 (C13).

The matching request apparatus 120 receives Enc(pk, b_(i)) (i=1, . . . , n) from the matching apparatus 140 (C14) and extracts the matching target vector

Y=[y ₁ , . . . ,y _(n)]∈{0,1}^(n)

(C15). The response generation unit 123 performs a scalar operation using Enc(pk, b_(i)) (i=1, . . . , n) received from the matching apparatus 140 to calculate Sc1(2y_(i)−1, Enc(b_(i)))=Enc(b_(i)(2y_(i)−1)) (i=1, . . . , n) (C16). The matching request apparatus 120 transmits Enc(pk, b_(i) (2y_(i)−1)) (i=1, . . . , n) to the matching apparatus 140 (C17).

The matching apparatus 140 receives Enc(pk, b_(i)(2y_(i)−1)) (i=1, . . . , n) (C18) and generates

Enc(pk,a _(i)(2x _(i)−1))(i=1, . . . ,n) and

Enc(pk, b_(i) r_(i) (2y_(i)−1)) (i=1, . . . , n) from Enc(pk, (2x_(i)−1)) received from the storage apparatus 130, Enc(pk, b_(i) (2y_(i)−1)) (i=1, . . . , n) transmitted from the matching request apparatus 120, and the random numbers a_(i),b_(i), and r_(i) (C19A). The hash value generation section 148 calculates the hash values H(a_(i)b_(i)r_(i)) of the product a_(i)b_(i)r_(i) (mod q) of the random numbers a_(i), b_(i), and r_(i) (i=1, . . . , n) (C19B).

The query generation unit 145 generates a query including the encrypted data Enc(pk, a_(i) (2x_(i)−1)) and Enc(pk, b_(i) r_(i) (2y_(i)−1)) (i=1, . . . , n) and the hash values H(a_(i)b_(i)r_(i)) (i=1, . . . , n) (C20) and transmits the query to the verification apparatus 150 via the communication unit 146 (C21). H denotes a one-way hash function.

When the communication unit 155 in the verification apparatus 150 receives the query, the decryption section 1531 in the query determination unit 153 decrypts the encrypted data Enc(pk, a_(i)(2x_(i)−1)) and Enc(pk, b_(i)r_(i)(2y_(i)−1)) (i=1, . . . , n) by using the secret key sk (C23A). That is, the decryption section 1531 in the query determination unit 153 calculates

z _(a)=Dec(sk,Enc(pk,a _(i)(2x _(i)−1))), and

z _(b)=Dec(sk,Enc(pk,b _(i) r _(i)(2y _(i)−1))).

Next, the hash value generation section 1532 in the query determination unit 153 in the verification apparatus 150 calculates a hash value H(z_(a) z_(b)) of a product of z_(a) and z_(b) (C23B).

The mismatching determination section 1533 in the query determination unit 153 in the verification apparatus 150 determines whether a count number of mismatches i between the calculated hash value H(z_(a) z_(b)) and the hash values H(a_(i) b_(i) r_(i)) received from the matching apparatus 140 is less than or equal to t. If the count number of mismatches is less than or equal to t, the verification result generation unit 154 determines acceptance. Otherwise, the verification result generation unit 154 determines rejection (C24). Next, the verification result generation unit 154 outputs the verification result (C25).

FIG. 22 illustrates an operation sequence according to the third example embodiment. The registration request apparatus 110 extracts the registration target vector X=[x₁, . . . , x_(n)], transmits the encrypted data Enc(pk, (2x_(i)−1)) (i=1, . . . , n) of an operation result (2x_(i)−1) of the elements {x_(i)} (i=1, . . . , n) to the storage apparatus 130 (S31). The storage apparatus 130 stores the encrypted data in association with a registration identifier Id.

On reception of a matching request from the matching request apparatus 120 (S32), the matching apparatus 140 receives the encrypted data Enc(pk, (2x_(i)−1)) (i=1, . . . , n) stored in association with the Id from the storage apparatus 130 (S33).

The matching apparatus 140 generates random numbers a_(i), b_(i), and r_(i) (S34). The matching apparatus 140 transmits encrypted data Enc(pk, b_(i)) (i=1, . . . , n) of the random numbers b_(i)=1, n) to the matching request apparatus 120 (S35).

The matching request apparatus 120 extracts the matching target vector Y=[y₁, . . . , y_(n)], calculates Enc(b_(i) (2y_(i)−1)) (i=1, . . . , n) from Enc(pk, b_(i)) (i=1, . . . , n) received from the matching apparatus 140, and transmits the encrypted data to the matching apparatus 140 (S36).

The matching apparatus 140 generates encrypted data

Enc(pk,a,(2x _(i)−1))(i=1, . . . ,n) and

Enc(pk,b _(i) r _(i)(2y _(i)−1))(i=1, . . . ,n) from Enc(pk,bi(2yi−1))(i=1, . . . ,n)

transmitted from the matching request apparatus 120, the encrypted data Enc(pk, (2x_(i)−1)) transmitted from the storage apparatus 130, and the random numbers a_(i), b_(i), and r_(i). The matching apparatus 140 also generates hash values H(a_(i)b_(i)r_(i)). The matching apparatus 140 transmits these data to the verification apparatus 150 (S37).

The verification apparatus 150 decrypts the encrypted data Enc(pk, a_(i) (2x_(i)−1)) and Enc(pk, b_(i)r_(i) (2y_(i)−1)) by using the secret key sk and calculates a hash value H(z_(a) z_(b)) of a product of the decryption results z_(a) and z_(b) (S38A).

The verification apparatus 150 determines whether a count number of mismatches i between the calculated hash value H(z_(a) z_(b)) and the hash values H(a_(i)b_(i)r_(i)) received from the matching apparatus 140 is less than or equal to t (S38B). If the count number of mismatches is less than or equal to t, the verification apparatus 150 determines acceptance. Otherwise, the verification apparatus 150 determines rejection. Next, the verification apparatus 150 outputs the detection result (acceptance/rejection) (S39).

<Variation 1>

FIG. 23 is a diagram illustrating an operation sequence according to variation 1 of the third example embodiment. The registration request apparatus 110 extracts a registration target vector X=[x₁, . . . , x_(n)] and transmits encrypted data Enc(pk, x_(i)) (i=1, . . . , n) of elements {x_(i)} (i=1, . . . , n) to storage apparatus 130 (S31). The storage apparatus 130 stores the encrypted data in association with a registration identifier Id.

On reception of a matching request from the matching request apparatus 120 (S32), the matching apparatus 140 receives the encrypted data Enc(pk, x_(i)) (i=1, . . . , n) stored in association with the Id from the storage apparatus 130 (S33).

The matching apparatus 140 generates random numbers a_(i), b_(i), and r_(i) (S34). The matching apparatus 140 calculates Enc(pk, 2x_(i)−1) (i=1, . . . , n) with the encrypted data Enc(pk, x_(i)) (i=1, . . . , n) being kept in an encrypted state. The matching apparatus 140 transmits the encrypted data Enc(pk, b_(i)) (i=1, . . . , n) of the random numbers b_(i) (i=1, . . . , n) to the matching request apparatus 120 (S35).

The matching request apparatus 120 extracts a matching target vector Y=[y₁, . . . , y_(n)], calculates Enc(pk, b_(i) y_(i)) (i=1, . . . , n) from Enc(pk, b_(i)) (i=1, . . . , n) received from the matching apparatus 140, and transmits the calculated encrypted data to the matching apparatus 140 (S36).

The matching apparatus 140 receives Enc(pk, b_(i)y_(i)) (i=1, . . . , n) from the matching request apparatus 120 and generates Enc(pk, bi(2yi−1)) (i=1, . . . , n) with Enc(pk, b_(i)y_(i)) being kept in an encrypted state. The matching apparatus 140 generates Enc(pk, a_(i) (2x_(i)−1)) (i=1, . . . , n) from Enc(pk, (2x_(i)−1)) and the random numbers a_(ii) and generates Enc(pk, b_(i)r_(i) (2y_(i)−1)) (i=1, . . . , n) from Enc(pk, bi(2yi−1)) and the random number r_(i).

The matching apparatus 140 generates and transmits hash values H(a_(i)b_(i)r_(i)) to the verification apparatus 150 (S37). The matching request apparatus 120 may extract a matching target vector Y=[y1, . . . , yn], generate Enc(pk, bi(2yi−1)) (i=1, . . . , n) from Enc(pk, b_(i)) (i=1, . . . , n) received from the matching apparatus 140, and transmit the generated encrypted data to the matching apparatus 140.

The verification apparatus 150 decrypts the encrypted data Enc(pk, a_(i) (2x_(i)−1)) and Enc(pk, b_(i)r_(i)(2y_(i)−1)) by using the secret key sk and calculates a hash value H(z_(a) z_(b)) of a product of the decryption result z_(a) and z_(b) (S38A).

The verification apparatus 150 determines whether a count number of mismatches i between the calculated hash values H(z_(a) z_(b)) and the hash values H(a_(i)b_(i)r_(i)) received from the matching apparatus 140 is less than or equal to t (S38B). If the count number of mismatches is less than or equal to t, the verification apparatus 150 determines acceptance. Otherwise, the verification apparatus 150 determines rejection. Next, the verification apparatus 150 outputs the detection result (acceptance/rejection) (S39).

<Variation 2>

In the variation 1 of the third example embodiment, on reception of the encrypted data Enc(pk, x_(i)) (i=1, . . . , n) from the storage apparatus 130, the matching apparatus 140 calculates Enc(pk, 2x_(i)−1) (i=1, . . . , n) with the encrypted data Enc(pk, x_(i)) (i=1, . . . , n) being kept in an encrypted state. In variation 2, the storage apparatus 130, on reception of the encrypted data Enc(pk, x_(i)) (i=1, . . . , n) of the elements {x_(i)} (i=1, . . . , n) from the registration request apparatus 110 which extract the registration target vector X=[x₁, . . . , x_(n)], may be configured to calculate Enc(pk, 2x_(i)−1) (i=1, . . . , n) with the encrypted data Enc(pk, x_(i)) (i=1, . . . , n) being kept in an encrypted state and store the calculated encrypted data in the registered data storage unit 133.

<Variation 3>

In variation 3 of the third example embodiment, a function of checking whether individual data x_(i)(i=1, . . . , n) of the registration target vector X=[x_(i) . . . , x_(n)] is x_(i)∈∈{0, 1} may be implemented.

FIG. 24 is a diagram illustrating a variation of the third example embodiment. Referring to FIG. 24, the storage apparatus 130 further includes, in addition to the configuration of the storage apparatus 130 in FIG. 5, a random number generation unit 136, an encrypted data generation unit 137, and a hash value generation section 138.

The verification apparatus 150 includes a registered data check unit 156 including a decryption section 1561, a hash value generation section 1562, and a matching determination section 1563.

FIG. 25 is a diagram illustrating an operation sequence in the registration phase according to the variation.

The registration request apparatus 110 calculates (2x₁−1), . . . , (2x_(n)−1) from the binary vector

X=[x ₁ , . . . , x _(n)]∈{0,1}^(n)

calculates (2x₁−1), . . . , (2x_(n)−1) and by using the public key pk, calculates encrypted data (first templates)

Enc(pk,(2x ₁−1)), . . . , Enc(pk,(2x _(n)−1))  (113)

and transmits the encrypted data (first templates) to the storage apparatus 130 (S31).

The random number generation unit 136 in the storage apparatus 130 generates random numbers c₁, . . . , c_(n) (S31A).

The encrypted data generation unit 137 in the storage apparatus 130 performs a scalar operation Sc1(ci, Enc(pk, (2xi−1))) to generate the following encrypted data.

Enc(pk,c ₁(2x ₁−1)), . . . , Enc(pk, c _(n)(2x _(n)−1))  (114)

The hash value generation section 138 in the storage apparatus 130 calculates hash values H(c₁{circumflex over ( )}2), . . . , H(c_(n){circumflex over ( )}2) by using a hash function H. The storage apparatus 130 transmits Enc(pk, c1(2x₁−1)), . . . , Enc(pk, cn(2x_(n)−1)) and the hash values H(c₁{circumflex over ( )}2), . . . , H(c_(n){circumflex over ( )}2) to the verification apparatus 150 via the communication unit 135 (S31B).

The decryption section 1561 in the verification apparatus 150 decrypts Enc(pk, c_(n) (2x_(i)−1)) (i=1, . . . , n) by using the secret key sk (S31C).

z _(i)=Dec(sk,Enc(pk, c _(i)(2x _(i)−1)))=c _(i)(2x _(i)−1)(i=1, . . . , n)  (115)

Next, the hash value generation section 1562 in the verification apparatus 150 calculates hash values H(z_(i){circumflex over ( )}2) (i=1, . . . , n).

The matching determination section 1563 in the verification apparatus 150 determines whether the following holds, for all i from i=1 to n.

H(z _(i){circumflex over ( )}2)=H(c _(i){circumflex over ( )}2)  (116)

If the above relationship holds, the matching determination section 1563 determines acceptance. If there is any i that does not satisfy H(z_(i){circumflex over ( )}2)=H(c_(i){circumflex over ( )}2), the matching determination section 1563 determines rejection (S31D).

The verification apparatus 150 notifies the storage apparatus 130 of the verification result (S31E).

If the verification result determined by the verification apparatus 150 is “acceptance” (Yes in S31F), the storage apparatus 130 stores Enc(pk, (2x₁−1)), Enc(pk, (2x_(n)−1)) in the registered data storage unit 133 in association with a registration identifier id (S31G).

The decryption section 1561 and the hash value generation section 1562 may commonly be used as the decryption section 1531 and the hash value generation section 1532 in the query determination unit 153.

Regarding z _(i) =c _(i)(2x _(i)−1)(i=1, . . . , n),

z _(i) =−c _(i) if x _(i) is 0,

z _(i) =c _(i) if x is 1  (117)

Thus, when x_(i)∈{0,1}, the hash values satisfy H(z_(i){circumflex over ( )}2)=H(c_(i){circumflex over ( )}2). When H(z_(i){circumflex over ( )}2)=H(c₁{circumflex over ( )}2), . . . , H(z_(n){circumflex over ( )}2)=H(c_(n){circumflex over ( )}2), the verification apparatus 150 determines acceptance. In this case, the storage apparatus 130 stores Enc(pk, (2x1−1)), Enc(pk, (2xn−1)) in the registered data storage unit in association with a registration identifier id.

In contrast, when xi is not 0 or 1, z_(i)=c_(i)(2x_(i)−1) is a value other than +c_(i) or −c_(i).

H(Z _(i) ²)≠H(c _(i) ²)

As a result, the verification apparatus 150 determines rejection.

The subsequent processing in the matching phase is the same as that described with reference to FIG. 16.

The registration request apparatus 110 may generate Enc(pk, x₁), . . . , Enc(pk, x_(n)) from the binary vector X=[x₁, . . . , x_(n)]∈{0,1}^(n) and transmit the encrypted data to the storage apparatus 130. The storage apparatus 130 may calculate Enc(pk, (2x_(i)−1)), . . . , Enc(pk, (2x_(n)−1)), generate random numbers c1, . . . , cn, and generate Enc(pk, c₁ (2x₁−1)), . . . , Enc(pk, c_(n) (2x_(n)−1)) from a scalar operation Sc1(c_(i), Enc(pk, (2x₁−1))), . . . , In this case, also in the first example embodiment, whether the individual data xi (i=1, . . . , n) of the registration target vector X=[x₁, . . . , x_(n)] is x_(i)∈{0,1} can be checked.

According to the third example embodiment, the verification apparatus calculates a product of messages obtained by decrypting ciphertexts. Thus, encryption in which a product of decrypted values is not defined cannot be used. For example, the Modified-Elgamal encryption in which the decryption algorithm outputs Dec(sk, Enc(pk, m))=g{circumflex over ( )}m, not messages, or the ECE1gama1 encryption in which the decryption algorithm outputs Dec(sk, Enc(pk, m))=m(*)G, not messages, cannot be used. In the message space Fq in the Modified-Elgamal encryption and the ECE1gama1 encryption and the message space in the Paillier encryption, a product is defined on Z_(N)={0, 1, . . . , N−1}. Thus, when the decryption algorithm outputs a message, the decryptor only needs to determine whether the decrypted value matches any one of 0, 1, 2, 3, . . . , and t. However, in the Modified-Elgamal encryption and ECE1gama1 encryption, generally, it is difficult to configure a decryption algorithm that outputs a message.

The first and second example embodiment can handle binary vectors as biometric information, have resistance against spoofing attacks, and do not need somewhat homomorphic encryption or pairing calculation. The above PTLs 2 and 3 are problematic in resistance against spoofing attacks and need somewhat homomorphic encryption or pairing calculation. In addition, PTL 5 is problematic in resistance against spoofing attacks and needs somewhat homomorphic encryption or pairing calculation.

The third example embodiment can handle binary vectors as biometric information and have resistance against spoofing attacks. In addition, the third example embodiment does not need somewhat homomorphic encryption or pairing calculation and is applicable to 1:N authentication.

Fourth Example Embodiment

A fourth example embodiment of the present invention will be described. The basic configuration according to the fourth example embodiment of the present invention is the same as that in FIG. 20 according to the third example embodiment. While in the third example embodiment, an additive homomorphic encryption scheme is used, in the fourth example embodiment, for example, a multiplicative homomorphic encryption scheme such as E1Gama1 encryption or RSA encryption is used.

In the key generation in E1Gama1 encryption, a generator g corresponding to a group G (multiplicative group Z*_(q)) whose order q (the bit number is a security parameter k) is a prime is selected. In addition, x is selected from {0, 1, . . . , q−1}, where h=g{circumflex over ( )}x. Next, (h, g, q) is used as a public key, and x is used as a secret key. In the encryption, a random number r is randomly selected from {0, 1, . . . , q−1} for a plaintext m, and

c ₁ =g{circumflex over ( )}r mod q and

c ₂ =m·h{circumflex over ( )}r mod q

are calculated to obtain ciphertexts (c₁, c₂).

In the decryption, m=c₂ (c₁{circumflex over ( )}x){circumflex over ( )}(−1) is set for the received ciphertexts. Herein, the ciphertexts of plaintexts m₁, m₂∈G are as follows.

Enc(pk,m ₁)=(g{circumflex over ( )}r ₁ , m ₁ ·h{circumflex over ( )}r ₁),

Enc(pk,m ₂)=(g{circumflex over ( )}r ₂ , m ₂ ·h{circumflex over ( )}r ₂)

Multiplication of these two ciphertexts gives

(g{circumflex over ( )}(r ₁ +r ₂),(m ₁ ×m ₂)h{circumflex over ( )}(r ₁ +r ₂))=Enc(pk,m ₁ ×m ₂).

Thus, the following holds.

Enc(pk,(m ₁ ×m ₂))=Enc(pk,m ₁)×Enc(pk, m ₂).

In the RSA encryption, a suitable positive integer e is selected, two large primes {p, q} are generated, and the public key {e, n} is generated by using a product n (=pq) and e. In addition, in the RSA encryption, d=e{circumflex over ( )}(−1) (mod(p−1)(q−1)) is used as the secret key. The encryption of a plaintext m is given as

c=m{circumflex over ( )}e mod n,

while the decryption is given as

m=c{circumflex over ( )}d mod n.

When the two ciphertexts

Enc(pk,m ₁)=m ₁ {circumflex over ( )}e mod n and

Enc(pk,m ₂)=m ₂ {circumflex over ( )}e mod n

of the two plaintexts m₁, m₂∈Z*_(n) are multiplied by each other,

(m ₁ ×m ₂){circumflex over ( )}e mod n=Enc(pk,(m ₁ ×m ₂)).

Thus, the following holds.

Enc(pk,(m ₁ ×m ₂))=Enc(pk,m ₁)×Enc(pk, m ₂).

As illustrated in FIG. 20, according to the fourth example embodiment, when the matching apparatus 140 receives a matching request from the matching request apparatus 120, the registered data acquisition unit 141 receives the encrypted data {Enc(pk, (2x_(i)−1))} (i=1, . . . , n) stored in association with the corresponding registration identifier id from the storage apparatus 130.

The random number generation unit 142 in the matching apparatus 140 generates random numbers a_(i) and b_(i).

The encrypted data generation unit 143 in the matching apparatus 140 transmits encrypted data Enc(pk, b_(i)) (i=1, . . . , n) obtained by encrypting the random numbers b_(i)=1, . . . , n) by using the public key pk to the matching request apparatus 120 (S45). The encrypted data transmitted to matching request apparatus 120 does not depend on the registered data (templates). Thus, 1: N authentication can be performed.

The response generation unit 123 in the matching request apparatus 120 encrypts the operation results (2y_(i)−1) of the elements {y_(i)} of the matching target vector Y=[y1, . . . , yn] by using the public key pk to generate Enc(pk, (2y_(i)−1)) (i=1, . . . , n). The response generation unit 123 in the matching request apparatus 120 multiplies Enc(pk, b_(i)) received from the matching apparatus 140 by Enc(pk, (2y_(i)−1)) (i=1, . . . , n) with these encrypted data kept in an encrypted state (multiplicative homomorphic encryption) to generate Enc(pk, b_(i) (2y_(i)−1)). Next, the matching request apparatus 120 transmits Enc(pk, b_(i) (2y_(i)−1)) to the matching apparatus 140.

The matching apparatus 140 obtains encrypted data Enc(pk, a_(i)) (i=1, n) by encrypting the random numbers a_(i) (i=1, . . . , n) by using the public key pk and generates the following formula (118) from Enc(pk, (2x_(i)−1)) and Enc(pk, b_(i) (2y_(i)−1)) from the matching request apparatus 120 by using multiplicative homomorphic encryption.

Enc(pk,a _(i) b _(i)(2x _(i)−1)(2y _(i)−1))(i=1, . . . , n)  (118)

The hash value generation section 148 calculates a hash value of the products a_(i) b_(i) (mod q) of the random numbers a_(i) and b_(i) (i=1, . . . , n) as expressed by

H(a _(i) b _(i))  (119)

The query generation unit 145 generates a query including the encrypted data Enc(pk, a_(i) b_(i) (2x_(i)−1) (2y_(i)−1)) (i=1, . . . , n) and the hash values H(a_(i)b_(i)) (i=1, . . . , n) and transmits the query to the verification apparatus 150 via the communication unit 146 (S47). H denotes a one-way hash function. In the transmission of the encrypted data Enc(pk, a_(i)b_(i) (2x_(i)−1)(2y_(i)−1)) (i=1, . . . , n), the query generation unit 145 may shuffle the sequence relating to the index i.

The decryption section 1531 in the query determination unit 153 in the verification apparatus 150 decrypts the encrypted data Enc(pk, aa_(i)b_(i) (2x_(i)−1)(2y_(i)−1)) (i=1, . . . , n) by using the secret key sk.

z _(i)=Dec(sk,Enc(pk, a _(i) b _(i)(2x _(i)−1)(2y _(i)−1))(i=1, . . . , n)  (120)

The hash value generation section 1532 in the query determination unit 153 in the verification apparatus 150 further calculates hash values H(z_(i))(i=1, . . . , n) of z_(i).

The mismatching determination section 1533 in the query determination unit 153 in the verification apparatus 150 determines whether a count number of mismatched i between the calculated hash values H(z_(i)) (i=1, . . . , n) and the hash values H(a_(i)b_(i)) received from the matching apparatus 140 is less than or equal to t.

If the count number of mismatches is less than or equal to t, the verification result generation unit 154 determines acceptance. Otherwise, the verification result generation unit 154 determines rejection.

z _(i) =a _(i) b _(i)(2x _(i)−1)(2y _(i)−1)  (121)

where z_(i)=a_(i) b, if y_(i) is 0 or 1 and y_(i)=x_(i);

z_(i)=−a_(i) b_(i), if y_(i) is 0 or 1 and y_(i)≠x; and

z_(i) is a value other than a_(i) b_(i) or −a_(i) b_(i), if y_(i) is a value other than 0 or 1.

Thus, when the following holds

H(z _(i))=H(a _(i) b _(i))  (122)

y_(i)=x_(i) and y_(i)=0 or 1.

Otherwise (hash values H(z)≠H(a_(i)b_(i))), while y_(i) is 0 or 1, y_(i)≠x_(i) or y_(i) is a value other than 0 or 1.

When the count number of mismatches with x_(i) is less than or equal to t, the verification result generation unit 154 determines acceptance.

FIG. 26 is a diagram illustrating an operation sequence according to the fourth example embodiment. The registration request apparatus 110 extracts the registration target vector X=[x₁, . . . , x_(n)], transmits encrypted data Enc(pk, (2x_(i)−1)) (i=1, . . . , n) of an operation result (2x_(i)−1) of elements {x_(i)} (i=1, . . . , n) to the storage apparatus 130 (S41), and stores the encrypted data in the storage apparatus 130 in association with a registration identifier Id.

On reception of a matching request from the matching request apparatus 120 (S42), the matching apparatus 140 receives the encrypted data Enc(pk, (2x_(i)−1)) (i=1, . . . , n) stored in association with the Id from the storage apparatus 130 (S43).

The matching apparatus 140 generates random numbers a_(i) and b_(i) (S44). The matching apparatus 140 transmits encrypted data Enc(pk, b_(i)) (i=1, . . . , n) of the random numbers b_(i) (i=1, . . . , n) to the matching request apparatus 120 (S45).

The matching request apparatus 120 extracts a matching target binary vector Y=[y₁, . . . , y_(n)], obtains encrypted data Enc(pk, (2y_(i)−1)) (i=1, . . . , n) of an operation results (2y_(i)−1) of individual elements {y_(i)}, and calculates Enc(pk, b_(i) (2y_(i)−1)) (i=1, . . . , n) based on the Enc(pk, b_(i)) (i=1, . . . , n) received from the matching apparatus 140 and Enc(pk, (2y_(i)−1)) (i=1, . . . , n), and transmits the calculated encrypted data to the matching apparatus 140 (S46).

The matching apparatus 140 generates Enc(pk, a_(i) bi(2x_(i)−1) (2y_(i)−1)) (i=1, . . . , n) based on Enc(pk, bi(2yi−1)) (i=1, . . . , n) received from the matching request apparatus 120, Enc(pk, (2x_(i)−1)) received from the storage apparatus 130, and the random numbers a_(i), b_(i) and generates hash values H(a_(i) b_(ii)) for transmission to the verification apparatus 150 (S47).

The verification apparatus 150 decrypts the encrypted data Enc(pk, a_(i)b_(i)r(2x_(i)−1)(2y_(i)−1)) by using the secret key sk and calculates a hash value H(z_(i)) based on the decryption result z_(i) (S48A).

The verification apparatus 150 determines whether a count number of mismatched i between the calculated hash values H(z_(i)) and the hash values H(a_(i)b_(i)) received from the matching apparatus 140 is less than or equal to t (S48B). If the count number of mismatches is less than or equal to t, the verification apparatus 150 determines acceptance. Otherwise, the verification apparatus 150 determines rejection. Next, the verification apparatus 150 outputs the detection result (acceptance/rejection) (S49).

<Variation 1>

As in variation 3 of the third example embodiment, according to the fourth example embodiment, a function of checking whether the individual elements {x_(i)} (i=1, . . . , n) of the registration target vector X=[x_(i) . . . , x_(n)] is x_(i)∈{0, 1} may be implemented. The configuration according to a variation of the fourth example embodiment is the same as that of the storage apparatus 130 and the verification apparatus 150 in FIG. 24. According to variation 1 of the fourth example embodiment, for example, a multiplicative homomorphic scheme such as RSA encryption or E1Gama1 encryption may be used.

FIG. 27 illustrates an operation sequence of the registration phase in this variation. While the sequence in FIG. 27 is the same as that in FIG. 25, the encrypted data operation processing differs in that a multiplicative homomorphic scheme is used. The registration request apparatus 110 calculates (2x_(i)−1), (2x_(n)−1) from the registration binary vector X=[x₁, . . . , x_(n)]∈{0,1}^(n) and transmits the following data (first templates) obtained by encrypting (2x_(i)−1), (2x_(n)−1) by using the public key pk to the storage apparatus 130 (S41).

Enc(pk,(2x ₁−1)),Enc(pk,(2x _(n)−1))  (123)

The random number generation unit 136 in the storage apparatus 130 generates random numbers c₁, . . . , c_(n) (S41A).

The encrypted data generation unit 137 in the storage apparatus 130 generates based on encrypted data Enc(pk, ci) (i=1, . . . , n) obtained by encrypting the random numbers c₁, . . . , c_(n) by using the public key pk and Enc(pk, (2x_(i)−1)) (i=1, . . . , n), generates the following encrypted data.

Enc(pk,c ₁(2x ₁−1)), . . . , Enc(pk, c _(n)(2x−1))  (124)

The hash value generation section 138 in the storage apparatus 130 calculates hash values H(c₁{circumflex over ( )}2), . . . , H(c_(n){circumflex over ( )}2) by using a hash function H. The storage apparatus 130 transmits Enc(pk, c1(2x₁−1)), . . . , Enc(pk, cn(2x_(n)−1)) and the hash values H(c₁{circumflex over ( )}2), . . . , H(c_(n){circumflex over ( )}2) to the verification apparatus 150 via the communication unit 135 (S41B).

The decryption section 1561 in the verification apparatus 150 decrypts Enc(pk, c_(n) (2x_(i)−1)) (i=1, . . . , n) by using the secret key sk (S41C).

z _(i)=Dec(sk,Enc(pk, c _(i)(2x _(i)−1)))=c _(i)(2x _(i)−1)(i=1, . . . , n)  (125)

Next, the hash value generation section 1562 in the verification apparatus 150 calculates hash values H(z_(i){circumflex over ( )}2) (i=1, . . . , n).

If the following relationship holds for all i=1, . . . , n, the matching determination section 1563 in the verification apparatus 150 determines acceptance.

H(z _(i){circumflex over ( )}2)=H(c _(i){circumflex over ( )}2)  (126)

If there is any i that does not satisfy H(z_(i){circumflex over ( )}2)=H(c_(i){circumflex over ( )}2), the matching determination section 1563 in the verification apparatus 150 determines rejection (S41D).

The verification apparatus 150 notifies the storage apparatus 130 of the verification result (S41E).

If the verification apparatus 150 determines “acceptance” as the verification result (Yes in S41F), the storage apparatus 130 stores Enc(pk, (2x₁−1)), . . . , Enc(pk, (2x_(n)−1)) in the registered data storage unit 133 in association with a registration identifier id (S41G).

The decryption section 1561 and the hash value generation section 1562 may commonly be used as the decryption section 1531 and the hash value generation section 1532 in the query determination unit 153.

z _(i) =c _(i)(2x _(i)−1)(i=1, . . . , n) takes a value of −c _(i), if x _(i) is 0, while

c _(i) if x _(i) is 1,  (127)

Thus, when x_(i)∈{0,1}, the following relationship (128) is satisfied. hash values

H(z _(i){circumflex over ( )}2)=H(c _(i){circumflex over ( )}2)  (128)

That is, when H(z₁{circumflex over ( )}2)=H(c₁{circumflex over ( )}2), . . . , H(z_(n){circumflex over ( )}2)=H(c_(n){circumflex over ( )}2) holds, the verification apparatus 150 determines acceptance. In this case, the storage apparatus 130 stores Enc(pk, (2x1−1)), Enc(pk, (2xn−1)) in the registered data storage unit in association with the registration identifier id. In contrast, when xi is not 0 or 1, z_(i)=c_(i) (2x_(i)−1) is a value other than +c_(i) and −c_(i). Namely, since H(z_(i) ²)≠H(c_(i) ²), the verification apparatus 150 determines rejection.

<Variation 2>

According to the fourth example embodiment, for example, when the verification apparatus 150 is able to acquire communication contents in steps S45 and S46 in FIG. 26, the verification apparatus 150 is able to know values of individual elements {yi} (i=1, . . . , n) of the matching target binary vector by using the secret key. Thus, according to variation 2 of the fourth example embodiment, this leakage is prevented, for example, by using the same method as that described in NPL 1. Namely, the communication between the matching apparatus 140 and the matching request apparatus 120 is encrypted as ciphertexts corresponding to a key different from the keys held by the verification apparatus 150.

For example, the secret key and the public key of E1Gama1 encryption are set to x and (h, g, q), respectively, and the ciphertext of a plaintext m is set to (c1, c2). (c1{circumflex over ( )}t, c2) calculated for a random number t that is randomly selected from {0, 1, . . . , q−1} is the ciphertext of a plaintext m corresponding to a secret key x/t and a public key (h, g{circumflex over ( )}t, q). When the E1Gama1 encryption scheme is used, the matching apparatus 140 receives a matching request from the matching request apparatus 120 (S42). Each time the matching apparatus 140 receives a matching request, the matching apparatus 140 generates a different random number t. In step S45, the matching apparatus 140 transmits the ciphertext corresponding to the public key (h, g{circumflex over ( )}t, q) and the public key (h, g{circumflex over ( )}t, q).

The matching request apparatus 120 transmits the ciphertext corresponding to the public key (h, g{circumflex over ( )}t, q) received from the matching apparatus 140 to the matching apparatus 140 (S46).

By using t, the matching apparatus 140 can restore the ciphertext corresponding to the original public key (h, g, q) from the ciphertext received from the matching request apparatus 120 in step S46.

In the fourth example embodiment, the encryption scheme is not limited to multiplicative homomorphic encryption such as RSA encryption and E1Gama1 encryption. For example, a public key encryption scheme having an additive and multiplicative homomorphic property such as a somewhat homomorphic encryption scheme or C.Gentry's “Fully Homomorphic Encryption Using Ideal Lattices (see “In Symposium on Theroy of Computing—STOC 2009, ACM, 169-178, 2009) may be used.

Fifth Example Embodiment

As illustrated in FIG. 28, the matching apparatus 140 may be implemented on a computer system. As illustrated in FIG. 28, a computer system 10 such as a server computer includes a processor (a CPU (central processing unit) or a data processing device) 11, a storage apparatus 12, a display apparatus 13, a communication interface 14. The storage apparatus 12 may include at least one of a semiconductor memory (for example, a RAM (a random access memory), a ROM (a read-only memory), an EEPROM (an electrically erasable and programmable ROM)), an HDD (hard disk drive), a CD (compact disc), a DVD (a digital versatile disc), etc. The communication interface 14 connects to and communicates with the registration request apparatus 110, the matching request apparatus 120, the storage apparatus 130, and the verification apparatus 150. The matching apparatus 140 according to each example embodiment described above may be realized by storing a program that realizes functions of the matching apparatus 140 described in each example embodiment described above in the storage apparatus 12 and causing the processor 11 to read and execute the program. Alternatively, the storage apparatus 12 and, for example, the registered data storage unit 133 in the storage apparatus 130 in FIG. 5, etc. may be configured as the same storage apparatus, and the processor 11 may be configured to perform the processing of the identifier management unit 131, the registration target data generation unit 132, and the registered data search unit 134 in the storage apparatus 130 in FIG. 5, etc. The computer system 10 may be implemented as a cloud server that provides clients with cloud services.

The registration request apparatus 110 according to each example embodiment described above may also be implemented on the computer system 10 with reference to FIG. 28. In addition, the matching request apparatus 120 according to each example embodiment described above may also be implemented as the computer system 10. The registration request apparatus 110 and the matching request apparatus 120 may be configured as separate computer systems or a single apparatus that performs both registration and matching. The registration request apparatus 110 and the matching request apparatus 120 according to each example embodiment described above may be realized by storing a program that realizes the functions of the registration request apparatus 110 and the matching request apparatus 120 in FIG. 5, etc. in the storage apparatus 12 and causing the processor 11 to read and execute the program. The processors 11 in the registration request apparatus 110 and the matching request apparatus 120 may acquire biometric information such as fingerprints from sensors (not illustrated) via the interface 14 and extract binary vectors X and Y from the acquired information. The verification apparatus 150 according to each example embodiment escribed above may of course be implemented by a program executed on a computer, with reference to FIG. 28.

The disclosure of each of the above PTLs 1 to 5 and NPL 1 is incorporated herein by reference thereto. Variations and adjustments of the example embodiments and examples are possible within the scope of the overall disclosure (including the claims) of the present invention and based on the basic technical concept of the present invention. Various combinations and selections of various disclosed elements (including the elements in the claims, example embodiments, examples, drawings, etc.) are possible within the scope of the claims of the present invention. Namely, the present invention of course includes various variations and modifications that could be made by those skilled in the art according to the overall disclosure including the claims and the technical concept.

The above example embodiments can be described as, but not limited to, the following supplementary notes.

(Note 1)

A matching system, comprising:

a matching apparatus that generates a random number, and

transmits encrypted data obtained by performing an operation of each of first values related to a first binary vector encrypted with an encryption key, and the random number, with each of the first values being kept in an encrypted state, or encrypted data obtained by encrypting the generated random number with the encryption key, to a matching request apparatus;

the matching request apparatus that performs an operation of the encrypted data transmitted from the matching apparatus and elements of a matching target second binary vector, with the encrypted data being kept in an encrypted state to generate and transmit encrypted data to the matching apparatus;

wherein the matching apparatus, based on a second value related to the first binary vector encrypted with the encryption key, the encrypted data transmitted from the matching request apparatus, and the random number,

generates encrypted data or the encrypted data and auxiliary data, each thereof for use of verification of a mismatch degree between the second binary vector and the first binary vector, and transmits the generated data as a query to a verification apparatus; and

the verification apparatus that determines whether a count number of mismatched elements between the second binary vector and the first binary vector is less than or equal to a predetermined number, based on a decrypted value obtained by decrypting, with a decryption key, the encrypted data included in the query transmitted from the matching apparatus, or the decrypted value and the auxiliary data included in the query.

(Note 2)

The matching system according to note 1, further comprising:

a registration request apparatus that transmits encrypted data obtained by encrypting at least one of each element of the first binary vector for registration and a result of a specific operation on the each element, with the encryption key; and

a storage apparatus that receives the encrypted data of at least one of the each element of the first binary vector and the encrypted data of the result of the specific operation on the each element transmitted from the registration request apparatus and holds the encrypted data as registered data.

(Note 3)

The matching system according to note 1, wherein the matching apparatus calculates, in response to a matching request from the matching request apparatus, calculates second encrypted data obtained by operating the random number to each item of first encrypted data obtained by encrypting with the encryption key, a first calculated value related to each element of the first binary vector and transmits the second encrypted data to the matching request apparatus,

wherein the matching request apparatus calculates third encrypted data that is a sum of values obtained by performing a scalar operation of each element of the second binary vector for each item of the second encrypted data transmitted from the matching apparatus, with the each item of the second encrypted data being kept in an encrypted state, and transmits the third encrypted data to the matching apparatus,

wherein the matching apparatus adds fourth encrypted data obtained by removing the random number from the third encrypted data transmitted from the matching request apparatus and fifth encrypted data obtained by encrypting with the encryption key a second calculated value related to each element of the first binary vector, with the fourth and fifth encrypted data being kept in an encrypted state, to calculate sixth encrypted data of a distance between the first and second binary vectors and transmits the sixth encrypted data to the verification apparatus, and

wherein the verification apparatus outputs acceptance or rejection based on a comparison between a distance between the first and second binary vectors and a predetermined threshold, the distance between the first and second binary vector obtained by decrypting the sixth encrypted data with the decryption key.

(Note 4)

The matching system according to note 3, comprising:

a registration request apparatus that generates the first encrypted data by encrypting the first calculated value related to the first binary vector with encryption key, and the fifth encrypted data by encrypting the second calculated value related to individual elements of the first binary vector with the encryption key and transmits the first encrypted data and the fifth encrypted data to a storage apparatus; and

the storage apparatus that receives the first encrypted data and the fifth encrypted data from the registration request apparatus, holds the first and fifth encrypted data as registered data, and supplies the first and fifth encrypted data to the matching apparatus.

(Note 5)

The matching system according to note 3, comprising:

a registration request apparatus that transmits encrypted data obtained by encrypting each element of the first binary vector with the encryption key to a storage apparatus; and

the storage apparatus that receives each item of the encrypted data of the each element of the first binary vector from the registration request apparatus, calculates the first encrypted data and the fifth encrypted data by calculating the first calculated values and the second calculated value, regarding the each element of the first binary vector, holds the first and fifth encrypted data as registered data, and supplies the first and fifth encrypted data to the matching apparatus.

(Note 6)

The matching system according to note 3, comprising:

a registration request apparatus that encrypts the individual elements of the first binary vector by using an encryption key and transmits the encrypted data to a storage apparatus; and

the storage apparatus that holds the encrypted data of each element of the first binary vector;

wherein the matching apparatus calculates the first and second calculated values regarding each element of the first binary vector as the first and fifth encrypted data with the encrypted data of each element of the first binary vector being kept in an encrypted state.

(Note 7)

The matching system according to note 1, wherein, on reception of a matching request from the matching request apparatus, the matching apparatus performs an operation of the random number and first encrypted data obtained by encrypting, with the encryption key, first transformed values that are obtained by applying preset first transformation to the first binary vector to calculate second encrypted data and transmits the second encrypted data to the matching request apparatus;

wherein the matching request apparatus performs an operation of each of second transformed values which are obtained by applying preset second transformation to the second binary vector and the second encrypted data transmitted from the matching apparatus to calculate encrypted data, each of which is a result of a multiplication of the second transformed value and a value which is obtained by operating the random number to the first transformed values, and transmits a sum of the encrypted data to the matching apparatus as third encrypted data;

wherein the matching apparatus removes the random number from the third encrypted data transmitted from the matching request apparatus, calculates fourth encrypted data which is a sum of values obtained by multiplying the first transformed values by the second transformed values, and adds fifth encrypted data obtained by encrypting a sum of each element of the first binary vector with the encryption key to the fourth encrypted data with the encrypted data being kept in an encrypted state to calculate sixth encrypted data of a distance between the first and second binary vectors and transmits the sixth encrypted data to the verification apparatus; and

wherein the verification apparatus obtains a distance between the first and second binary vectors by decrypting the sixth encrypted data with the decryption key to output acceptance or rejection based on a comparison between the distance between the first and second binary vectors and a predetermined threshold.

(Note 8)

The matching system according to note 7, comprising:

a registration request apparatus that calculates the n first transformed values by applying the first transformation to the registration target n-dimensional first binary vector, generates the first encrypted data by encrypting the n first transformed values by using an encryption key, and transmits the first encrypted data and encrypted data of the individual elements of the registration target n-dimensional first binary vector to a storage apparatus; and

the storage apparatus that generates the fifth encrypted data by encrypting a sum of the elements of the first binary vector, holds the first and fifth encrypted data as registered data, and transmits the first and fifth encrypted data to the matching apparatus.

(Note 9)

The matching system according to note 7, comprising:

a registration request apparatus that transmits encrypted data of the individual elements of the registration target n-dimensional first binary vector to a storage apparatus; and

the storage apparatus that includes means for calculating encrypted data of the n first transformed values by applying the first transformation to the first binary vector with the encrypted data of each element of the first binary vector being kept in an encrypted state and means for generating fifth encrypted data by encrypting a sum of elements of the first binary vector and holds the first encrypted data of the n first transformed values and the fifth encrypted data obtained by encrypting a sum of elements of the first binary vector,

wherein, on reception of a matching request from the matching request apparatus, the matching apparatus obtains the encrypted data of the n first transformed values from the storage apparatus, generates a random number, calculates second encrypted data by operating the random number to individual items of the first encrypted data of the n first transformed values, and transmits the second encrypted data to the matching request apparatus;

wherein the matching request apparatus calculates the second transformed values by applying the second transformation to the second binary vector, performs an operation of each of the second transformed values and each of the second encrypted data received from the matching apparatus, obtains encrypted data by multiplying each of the second transformed values by each of values obtained by operating the random number to the first transformed values, and transmits third encrypted data of a sum of the encrypted data to the matching apparatus; and

wherein the matching apparatus calculates sixth encrypted data by removing the random number from the third encrypted data transmitted from the matching request apparatus, calculates the fourth encrypted data of a sum of values obtained by multiplying the first transformed values by the second transformed values, and adds the fourth encrypted data and the fifth encrypted data registered in the storage apparatus and transmits the sixth encrypted data to the verification apparatus.

(Note 10)

The matching system according to note 7, wherein the matching apparatus includes:

means for acquiring, on reception of a matching request from the matching request apparatus, encrypted data of each element of the first binary vector and generating encrypted data of a sum of elements with the elements of the first binary vector being kept in an encrypted state;

means for calculating first encrypted data of the n first transformed values by applying the first transformation to the first binary vector with the encrypted data of each element of the first binary vector being kept in an encrypted state;

means for generating fifth encrypted data by encrypting a sum of the elements of the first binary vector, wherein

the matching apparatus generates a random number, calculates the second encrypted data by operating the random number to individual items of the first encrypted data of the n first transformed values, and transmits the second encrypted data to the matching request apparatus;

wherein the matching request apparatus calculates the n second transformed values by applying the second transformation to the second binary vector, performs an operation of the individual second transformed values and the individual elements of the second encrypted data, obtains encrypted data by multiplying each of the second transformed values by each of values obtained by operating the random number to the first transformed values, and transmits third encrypted data of a sum of the encrypted data to the matching apparatus; and

wherein the matching apparatus removes the random number from the third encrypted data transmitted from the matching request apparatus, calculates fourth encrypted data of a sum of values obtained by multiplying the first transformed values by the second transformed values,

calculates sixth encrypted data by adding the fourth encrypted data and the fifth encrypted data registered in the storage apparatus and transmits the sixth encrypted data to the verification apparatus.

(Note 11)

The matching system according to note 7, wherein the matching apparatus includes:

means for acquiring, on reception of a matching request from the matching request apparatus, encrypted data of each element of the first binary vector, and generating fifth encrypted data by encrypting a sum of the elements of the first binary vector;

means for generating a first group of transformation coefficients constituting the first transformation; and

means for calculating the n first transformed values by applying the first transformation to the first binary vector, with the encrypted data of each element of the first binary vector being kept in an encrypted state,

wherein the matching apparatus generates a random number, calculates the second encrypted data by operating the random number to individual items of the first encrypted data of the n first transformed values, transmits the second encrypted data to the matching request apparatus, and transmits a second group of transformation coefficients constituting the second transformation used to generate the first group of transformation coefficients to the matching request apparatus;

wherein the matching request apparatus calculates the second transformed values by applying the second transformation defined by the second group of transformation coefficients from the matching apparatus to the second binary vector, performs an operation of each of the second transformed values and each of the second encrypted data received from the matching apparatus, obtains encrypted data by multiplying each of the second transformed values by each of values obtained by operating the random number to the first transformed values, and transmits third encrypted data of a sum of the encrypted data to the matching apparatus; and

wherein the matching apparatus removes the random number from the third encrypted data transmitted from the matching request apparatus, obtains encrypted data of a sum of values obtained by multiplying the first transformed values by the second transformed values, calculates sixth encrypted data by adding the encrypted data of the sum and the fifth encrypted data, and transmits the sixth encrypted data to the verification apparatus.

(Note 12)

The matching system according to note 9 or 10, comprising:

a registration request apparatus that generates encrypted data of individual elements of the registration target n-dimensional first binary vector and transmits the encrypted data to a storage apparatus, and

the storage apparatus stores the encrypted data of each element of the first binary vector transmitted from the registration request apparatus.

(Note 13)

The matching system according to note 1, wherein, on reception of a matching request from the matching request apparatus, the matching apparatus generates first to third random numbers and transmits first encrypted data obtained by encrypting the first random number with the encryption key to the matching request apparatus;

wherein the matching request apparatus calculates second encrypted data, which is a first operation result of a first calculated value of each element of a matching target second binary vector and the encrypted data of the first random number, and transmits the second encrypted data to the matching apparatus;

wherein the matching apparatus transmits third encrypted data obtained by performing an operation of the second encrypted data transmitted from the matching request apparatus and the second random number, fourth encrypted data which is an operation result of encrypted data of a first calculated value of each element of the first binary vector encrypted with the encryption key and the third random number, and a hash value based on the generated first to third random numbers to the verification apparatus; and

wherein the verification apparatus decrypts the third and fourth encrypted data transmitted from the matching apparatus with the decryption key, calculates hash values based on the decrypted values, determines whether a count number of mismatched elements between the hash values and the hash values transmitted from the matching apparatus is less than or equal to a predetermined value, determines acceptance if the number of mismatched elements is less than or equal to the predetermined value, and determines rejection if the number of mismatched elements is over the predetermined value.

(Note 14)

The matching system according to note 1, wherein, on reception of a matching request from the matching request apparatus, the matching apparatus generates first and second random numbers and transmits first encrypted data obtained by encrypting the first random number with the encryption key to the matching request apparatus,

wherein the matching request apparatus calculates second encrypted data, which is a first operation result of a first calculated value of each element of a matching target second binary vector and the encrypted data of the first random number, and transmits the second encrypted data to the matching apparatus,

wherein the matching apparatus transmits third encrypted data which is an operation result of the second encrypted data transmitted from the matching request apparatus, encrypted data of a first calculated value of each element of the first binary vector encrypted with the encryption key and the second random number, and hash values based on the generated first and second random numbers to the verification apparatus, and

wherein the verification apparatus decrypts the third encrypted data transmitted from the matching apparatus by using the decryption key, calculates hash values of the decrypted values, determines whether a count number of mismatched elements between the hash values and the hash values transmitted from the matching apparatus is less than or equal to a predetermined value, determines acceptance if the number of mismatched elements is less than or equal to the predetermined value, and determines rejection if the number of mismatched elements is over the predetermined value.

(Note 15)

The matching system according to note 13 or 14, comprising:

a registration request apparatus that transmits encrypted data obtained by encrypting the first calculated values of the individual elements of the first binary vector by using the encryption key to the storage apparatus; and

the storage apparatus that holds the encrypted data transmitted from the registration request apparatus.

(Note 16)

The matching system according to note 13 or 14, comprising:

a registration request apparatus that transmits encrypted data obtained by encrypting the first calculated values of the individual elements of the first binary vector by using the encryption key to the storage apparatus; and

a storage apparatus that includes:

means for generating random numbers for the respective encrypted data of the first calculated values of individual elements of the first binary vector;

means for generating hash values of the individual random numbers; and

means for transmitting encrypted data obtained by operation of the respective random numbers to the respective encrypted data of the first calculated values and the hash values to the verification apparatus;

wherein the verification apparatus decrypts the individual encrypted data transmitted from the storage apparatus by using the decryption key, calculates hash values of the individual decrypted values, determines whether the individual hash values match the respective hash values transmitted from the storage apparatus, determines rejection if there is any mismatched hash value, and determines acceptance if all the individual hash values match the respective hash values transmitted from the storage apparatus; and

wherein, if a verification result from the verification apparatus indicates acceptance, the storage apparatus holds the encrypted data of the first calculated values.

(Note 17)

A matching method, comprising steps of:

(a) by a matching apparatus, generating a random number and transmitting encrypted data obtained by performing an operation of each of first values related to a first binary vector encrypted with an encryption key, and the random number, with each of the first values being kept in an encrypted state, or encrypted data obtained by encrypting the generated random number with the encryption key, to a matching request apparatus;

(b) by the matching request apparatus, performing an operation of the encrypted data transmitted from the matching apparatus and elements of a matching target second binary vector, with the encrypted data being kept in an encrypted state to generate and transmitting encrypted data to the matching apparatus;

(c) by the matching apparatus, based on a second value related to the first binary vector encrypted with the encryption key, the encrypted data transmitted from the matching request apparatus, and the random number,

generating encrypted data or the encrypted data and auxiliary data, each thereof for use of verification of a mismatch degree between the second binary vector and the first binary vector, and transmitting the generated data as a query to a verification apparatus; and

(d) by the verification apparatus, determining whether a count number of mismatched elements between the second binary vector and the first binary vector is less than or equal to a predetermined number, based on a decrypted value obtained by decrypting, with a decryption key, the encrypted data included in the query transmitted from the matching apparatus, or the decrypted value and the auxiliary data included in the query.

(Note 18)

The matching method according to note 17, further comprising, before the step (a), steps of:

(e) by a registration request apparatus, transmitting encrypted data obtained by encrypting at least one of each element of the first binary vector for registration and a result of a specific operation on the each element, with the encryption key; and

(f) by a storage apparatus, receiving the encrypted data of at least one of the each element of the first binary vector and the encrypted data of the result of the specific operation on the each element transmitted from the registration request apparatus to hold the encrypted data as registered data.

(Note 19)

The matching method according to note 17, wherein, in the step (a),the matching apparatus calculates, in response to a matching request from the matching request apparatus, calculates second encrypted data obtained by operating the random number to each item of first encrypted data obtained by encrypting with the encryption key, a first calculated value related to each element of the first binary vector and transmits the second encrypted data to the matching request apparatus,

wherein, in the step (b), the matching request apparatus calculates third encrypted data that is a sum of values obtained by performing a scalar operation of each element of the second binary vector for each item of the second encrypted data transmitted from the matching apparatus, with the each item of the second encrypted data being kept in an encrypted state, and transmits the third encrypted data to the matching apparatus,

wherein, in the step (c), the matching apparatus adds fourth encrypted data obtained by removing the random number from the third encrypted data transmitted from the matching request apparatus and fifth encrypted data obtained by encrypting with the encryption key a second calculated value related to each element of the first binary vector, with the fourth and fifth encrypted data being kept in an encrypted state, to calculate sixth encrypted data of a distance between the first and second binary vectors and transmits the sixth encrypted data to the verification apparatus, and

wherein, in the step (d), the verification apparatus outputs acceptance or rejection based on a comparison between a distance between the first and second binary vectors and a predetermined threshold, the distance between the first and second binary vector obtained by decrypting the sixth encrypted data with the decryption key.

(Note 20)

The matching method according to note 19, comprising, before the step (a), steps of:

(e) by a registration request apparatus generating the first encrypted data by encrypting the first calculated value related to the first binary vector with encryption key, and the fifth encrypted data by encrypting the second calculated value related to individual elements of the first binary vector with the encryption key and transmitting the first encrypted data and the fifth encrypted data to a storage apparatus; and

(f) by the storage apparatus, receiving the first encrypted data and the fifth encrypted data from the registration request apparatus, holding the first and fifth encrypted data as registered data, and supplying the first and fifth encrypted data to the matching apparatus.

(Note 21)

The matching method according to note 19, comprising, before the step (a), steps of:

(e) by a registration request apparatus, transmitting encrypted data obtained by encrypting each element of the first binary vector with the encryption key to a storage apparatus; and

(f) by the storage apparatus, receiving each item of the encrypted data of the each element of the first binary vector from the registration request apparatus, calculating the first encrypted data and the fifth encrypted data by calculating the first calculated values and the second calculated value, regarding the each element of the first binary vector, holding the first and fifth encrypted data as registered data, and supplying the first and fifth encrypted data to the matching apparatus.

(Note 22)

The matching method according to note 19, comprising, before the step (a), steps of:

(e) by a registration request apparatus, encrypting the individual elements of the first binary vector by using an encryption key and transmits the encrypted data to a storage apparatus; and

(f) by the storage apparatus, holding the encrypted data of each element of the first binary vector, wherein the matching apparatus calculates the first and second calculated values regarding each element of the first binary vector as the first and fifth encrypted data with the encrypted data of each element of the first binary vector being kept in an encrypted state.

(Note 23)

The matching method according to note 17, wherein, in the step (a), on reception of a matching request from the matching request apparatus, the matching apparatus performs an operation of the random number and first encrypted data obtained by encrypting, with the encryption key, first transformed values that are obtained by applying preset first transformation to the first binary vector to calculate second encrypted data and transmits the second encrypted data to the matching request apparatus;

wherein, in the step (b), the matching request apparatus performs an operation of second transformed values which are obtained by applying preset second transformation to the second binary vector and the second encrypted data transmitted from the matching apparatus to calculate encrypted data, each of which is a result of a multiplication of the second transformed value and a value which is obtained by operating the random number to the first transformed values, and transmits a sum of the encrypted data to the matching apparatus as third encrypted data;

wherein, in the step (c), the matching apparatus removes the random number from the third encrypted data transmitted from the matching request apparatus, calculates fourth encrypted data which is a sum of values obtained by multiplying the first transformed values by the second transformed values, and adds fifth encrypted data obtained by encrypting a sum of each element of the first binary vector with the encryption key to the fourth encrypted data with the encrypted data being kept in an encrypted state to calculate sixth encrypted data of a distance between the first and second binary vectors and transmits the sixth encrypted data to the verification apparatus; and

wherein, in the step (d), the verification apparatus obtains a distance between the first and second binary vectors by decrypting the sixth encrypted data with the decryption key to output acceptance or rejection based on a comparison between the distance between the first and second binary vectors and a predetermined threshold.

(Note 24)

The matching method according to note 23, comprising, before the step (a), steps of:

(e) by a registration request apparatus, calculating the n first transformed values by applying the first transformation to the registration target n-dimensional first binary vector, generates the first encrypted data by encrypting the n first transformed values by using an encryption key, and transmitting the first encrypted data and encrypted data of the individual elements of the registration target n-dimensional first binary vector to a storage apparatus; and

(f) by the storage apparatus, generating the fifth encrypted data by encrypting a sum of the elements of the first binary vector, holding the first and fifth encrypted data as registered data, and transmitting the first and fifth encrypted data to the matching apparatus.

(Note 25)

The matching method according to note 23, comprising, before the step (a), steps of:

(e) by a registration request apparatus, transmitting encrypted data of the individual elements of the registration target n-dimensional first binary vector to a storage apparatus; and

(f) by the storage apparatus, calculating encrypted data of the n first transformed values by applying the first transformation to the first binary vector with the encrypted data of each element of the first binary vector being kept in an encrypted state, and generating fifth encrypted data by encrypting a sum of elements of the first binary vector and holds the first encrypted data of the n first transformed values and the fifth encrypted data obtained by encrypting a sum of elements of the first binary vector,

wherein, on reception of a matching request from the matching request apparatus, the matching apparatus obtains the encrypted data of the n first transformed values from the storage apparatus, generates a random number, calculates second encrypted data by operating the random number to individual items of the first encrypted data of the n first transformed values, and transmits the second encrypted data to the matching request apparatus;

wherein the matching request apparatus calculates the second transformed values by applying the second transformation to the second binary vector, performs an operation of each of the second transformed values and each of the second encrypted data received from the matching apparatus, obtains encrypted data by multiplying each of the second transformed values by each of values obtained by operating the random number to the first transformed values, and transmits third encrypted data of a sum of the encrypted data to the matching apparatus; and

wherein the matching apparatus calculates sixth encrypted data by removing the random number from the third encrypted data transmitted from the matching request apparatus, calculates the fourth encrypted data of a sum of values obtained by multiplying the first transformed values by the second transformed values, and adds the fourth encrypted data and the fifth encrypted data registered in the storage apparatus and transmits the sixth encrypted data to the verification apparatus.

(Note 26)

The matching method according to note 23;

wherein the step (a) includes the steps of:

by the matching apparatus,

-   -   acquiring, on reception of a matching request from the matching         request apparatus, encrypted data of each element of the first         binary vector and generating encrypted data of a sum of elements         with the elements of the first binary vector being kept in an         encrypted state;

calculating first encrypted data of the n first transformed values by applying the first transformation to the first binary vector with the encrypted data of each element of the first binary vector being kept in an encrypted state;

generating fifth encrypted data by encrypting a sum of the elements of the first binary vector;

generating a random number; calculating the second encrypted data by operating the random number to individual items of the first encrypted data of the n first transformed values; and transmitting the second encrypted data to the matching request apparatus;

wherein, in the step (b), the matching request apparatus calculates the n second transformed values by applying the second transformation to the second binary vector, performs an operation of the individual second transformed values and the individual elements of the second encrypted data, obtains encrypted data by multiplying each of the second transformed values by each of values obtained by operating the random number to the first transformed values, and transmits third encrypted data of a sum of the encrypted data to the matching apparatus; and

wherein, in the step (c), the matching apparatus removes the random number from the third encrypted data transmitted from the matching request apparatus, calculates fourth encrypted data of a sum of values obtained by multiplying the first transformed values by the second transformed values,

calculates sixth encrypted data by adding the fourth encrypted data and the fifth encrypted data registered in the storage apparatus and transmits the sixth encrypted data to the verification apparatus.

(Note 27)

The matching method according to note 23, wherein the step (a) includes steps of:

by the matching apparatus, on reception of a matching request from the matching request apparatus,

acquiring encrypted data of each element of the first binary vector, and generating fifth encrypted data by encrypting a sum of the elements of the first binary vector;

generating a first group of transformation coefficients constituting the first transformation;

calculating the n first transformed values by applying the first transformation to the first binary vector, with the encrypted data of each element of the first binary vector being kept in an encrypted state;

generating a random number;

calculating the second encrypted data by operating the random number to individual items of the first encrypted data of the n first transformed values,

transmitting the second encrypted data to the matching request apparatus; and

transmitting a second group of transformation coefficients constituting the second transformation used to generate the first group of transformation coefficients to the matching request apparatus,

wherein, in the step (b), the matching request apparatus calculates the second transformed values by applying the second transformation defined by the second group of transformation coefficients from the matching apparatus to the second binary vector, performs an operation of each of the second transformed values and each of the second encrypted data received from the matching apparatus, obtains encrypted data by multiplying each of the second transformed values by each of values obtained by operating the random number to the first transformed values, and transmits third encrypted data of a sum of the encrypted data to the matching apparatus; and

wherein, in the step (c), the matching apparatus removes the random number from the third encrypted data transmitted from the matching request apparatus, obtains encrypted data of a sum of values obtained by multiplying the first transformed values by the second transformed values, calculates sixth encrypted data by adding the encrypted data of the sum and the fifth encrypted data, and transmits the sixth encrypted data to the verification apparatus.

(Note 28)

The matching method according to note 26 or 27, comprising, before the step (a), steps of:

(e) by a registration request apparatus, generates encrypted data of the individual elements of the registration target n-dimensional first binary vector and transmits the encrypted data to a storage apparatus; and

(f) by the storage apparatus, storing the encrypted data of each element of the first binary vector transmitted from the registration request apparatus.

(Note 29)

The matching method according to note 17, wherein, in the step (a), on reception of a matching request from the matching request apparatus, the matching apparatus generates first to third random numbers and transmits first encrypted data obtained by encrypting the first random number with the encryption key to the matching request apparatus;

wherein, in the step (b), the matching request apparatus calculates second encrypted data, which is a first operation result of a first calculated value of each element of a matching target second binary vector and the encrypted data of the first random number, and transmits the second encrypted data to the matching apparatus;

wherein, in the step (c), the matching apparatus transmits third encrypted data obtained by performing an operation of the second encrypted data transmitted from the matching request apparatus and the second random number, fourth encrypted data which is an operation result of encrypted data of a first calculated value of each element of the first binary vector encrypted with the encryption key and the third random number, and a hash value based on the generated first to third random numbers to the verification apparatus; and

wherein, in the step (d), the verification apparatus decrypts the third and fourth encrypted data transmitted from the matching apparatus with the decryption key, calculates hash values based on the decrypted values, determines whether a count number of mismatched elements between the hash values and the hash values transmitted from the matching apparatus is less than or equal to a predetermined value, determines acceptance if the number of mismatched elements is less than or equal to the predetermined value, and determines rejection if the number of mismatched elements is over the predetermined value.

(Note 30)

The matching method according to note 17, wherein, in the step (a), on reception of a matching request from the matching request apparatus, the matching apparatus generates first and second random numbers and transmits first encrypted data obtained by encrypting the first random number with the encryption key to the matching request apparatus,

wherein, in the step (b), the matching request apparatus calculates second encrypted data, which is a first operation result of a first calculated value of each element of a matching target second binary vector and the encrypted data of the first random number, and transmits the second encrypted data to the matching apparatus,

wherein, in the step (c), the matching apparatus transmits third encrypted data which is an operation result of the second encrypted data transmitted from the matching request apparatus, encrypted data of a first calculated value of each element of the first binary vector encrypted with the encryption key and the second random number, and hash values based on the generated first and second random numbers to the verification apparatus, and

wherein, in the step (d), the verification apparatus decrypts the third encrypted data transmitted from the matching apparatus by using the decryption key, calculates hash values of the decrypted values, determines whether a count number of mismatched elements between the hash values and the hash values transmitted from the matching apparatus is less than or equal to a predetermined value, determines acceptance if the number of mismatched elements is less than or equal to the predetermined value, and determines rejection if the number of mismatched elements is over the predetermined value.

(Note 31)

The matching method according to note 29 or 30, comprising, before the step (a), steps of:

(e) by a registration request apparatus, transmitting encrypted data obtained by encrypting the first calculated values of the individual elements of the first binary vector by using the encryption key to the storage apparatus; and

(f) by a storage apparatus, generating random numbers for the respective encrypted data of the first calculated values of individual elements of the first binary vector;

(g) by a storage apparatus, generating hash values of the individual random numbers; and

(h) by a storage apparatus, transmitting encrypted data obtained by operation of the respective random numbers to the respective encrypted data of the first calculated values and the hash values to the verification apparatus;

(i) by the verification apparatus, decrypting the individual encrypted data transmitted from the storage apparatus by using the decryption key, calculating hash values of the individual decrypted values, determines whether the individual hash values match the respective hash values transmitted from the storage apparatus, determining rejection if there is any mismatched hash value, and determining acceptance if all the individual hash values match the respective hash values transmitted from the storage apparatus; and

(j) if a verification result from the verification apparatus indicates acceptance, holding, by the storage apparatus, the encrypted data of the first calculated values.

(Note 32)

A matching apparatus, comprising:

means for generating a random number, and transmitting encrypted data obtained by performing an operation of each of first values related to a first binary vector encrypted with an encryption key, and the random number, with each of the first values being kept in an encrypted state, or encrypted data obtained by encrypting the generated random number with the encryption key, to a matching request apparatus;

means for receiving, from the matching request apparatus, encrypted data obtained by an operation of each element of a matching target second binary vector, with the encrypted data being kept in an encrypted state;

means for generating, based on a second value related to the first binary vector encrypted with the encryption key, the encrypted data transmitted from the matching request apparatus, and the random number,

encrypted data or the encrypted data and auxiliary data, each thereof for use of verification of a mismatch degree between the second binary vector and the first binary vector, and transmits the generated data as a query to a verification apparatus; and

means for receiving a verification result from the verification apparatus that determines whether a count number of mismatched elements between the second binary vector and the first binary vector is less than or equal to a predetermined number, based on a decrypted value obtained by decrypting, with a decryption key, the encrypted data included in the query transmitted from the matching apparatus, or the decrypted value and the auxiliary data.

(Note 33)

A matching apparatus, including:

means for generating, in response to a matching request from a matching request apparatus, a random number, obtain second encrypted data by performing an operation of the random number and individual elements of first encrypted data obtained by encrypting first calculated values about individual elements of a first binary vector encrypted by using an encryption key by using the encryption key, and transmitting the second encrypted data to the matching request apparatus; and

means for receiving third encrypted data, which is a sum of values obtained by performing a scalar operation of individual elements of the second encrypted data and individual elements of a matching target second binary vector with the encrypted data being kept in an encrypted state from the matching request apparatus;

means for calculating sixth encrypted data about a distance between the first and second binary vectors by adding fourth encrypted data obtained by removing the random number from the third encrypted data transmitted from the matching request apparatus and fifth encrypted data obtained by encrypting a second calculated value about the individual elements of the first binary vector by using the encryption key without decrypting the fourth and fifth encrypted data and transmitting the sixth encrypted data to a verification apparatus as a query; and

means for receiving a verification result from the verification apparatus that outputs the verification result based on a comparison between a distance between the first and second binary vectors obtained by decrypting the sixth encrypted data in the query by using the decryption key and a predetermined threshold.

(Note 34)

A matching apparatus, including:

means for calculating, on reception of a matching request from a matching request apparatus, second encrypted data by performing an operation of a generated random number and first encrypted data obtained by encrypting first transformed values obtained by applying preset first transformation to a registration target first binary vector encrypted by using an encryption key by using the encryption key and transmitting the second encrypted data to the matching request apparatus;

means for receiving third encrypted data, which is a sum of encrypted data, which corresponds to results of multiplication of second transformed values obtained by applying preset second transformation to a matching target second binary vector by values obtained by operating the random number to the first transformed values, by performing an operation of the second transformed values and the second encrypted data from the matching request apparatus;

means for calculating sixth encrypted data about a distance between the first and second binary vectors by removing the random number from the third encrypted data transmitted from the matching request apparatus, calculating fourth encrypted data, which is a sum of values obtained by multiplying the first transformed values by the second transformed values, and adding fifth encrypted data obtained by encrypting a sum of individual elements of the first binary vector by using the encryption key to the fourth encrypted data with the encrypted data being kept in an encrypted state and transmitting the sixth encrypted data to a verification apparatus as a query; and

means for receiving a verification result from the verification apparatus that outputs the verification result based on a comparison between a distance between the first and second binary vectors obtained by decrypting the sixth encrypted data in the query by using the decryption key and a predetermined threshold.

(Note 35)

A matching apparatus, including:

means for generating, on reception of a matching request from a matching request apparatus, first to third random numbers and transmitting first encrypted data obtained by encrypting the first random number with the encryption key to the matching request apparatus; and

means for receiving second encrypted data, which is a first operation result between first calculated values of individual elements of a matching target second binary vector and the encrypted data of the first random number from the matching request apparatus;

means for transmitting third encrypted data obtained by performing an operation of the second encrypted data transmitted from the matching request apparatus and the second random number, fourth encrypted data which is an operation result of encrypted data of first calculated values of individual elements of a registration target first binary vector and the third random number, and hash values (auxiliary data for verification) based on the generated first to third random numbers to a verification apparatus; and

means for receiving a verification result from the verification apparatus that decrypts the third and fourth encrypted data by using a decryption key, calculates hash values of values obtained by multiplying the decrypted values, determines whether a count number of mismatched elements between the hash values and the hash values transmitted from the matching apparatus is less than or equal to a predetermined value, determines acceptance as the verification result if the number of mismatched elements is less than or equal to the predetermined value, and determines rejection as the verification result if the number of mismatched elements is over the predetermined value.

(Note 36)

A matching apparatus, including:

means for generating, on reception of a matching request from a matching request apparatus, first and second random numbers and transmitting first encrypted data obtained by encrypting the first random number with the encryption key to the matching request apparatus;

means for receiving second encrypted data, which is a first operation result between first calculated values of individual elements of a matching target second binary vector and the encrypted data of the first random number from the matching request apparatus;

means for transmitting the second encrypted data transmitted from the matching request apparatus, third encrypted data, which is an operation result of encrypted data of first calculated values of individual elements of a registration target first binary vector encrypted by using the encryption key and the second random number, and hash values (auxiliary data for verification) based on the generated first and second random numbers to a verification apparatus; and

means for receiving a verification result from the verification apparatus that decrypts the third encrypted data by using a decryption key, calculates hash values of the decrypted values, determines whether a count number of mismatched elements between the hash values and the hash values transmitted from the matching apparatus is less than or equal to a predetermined value, determines acceptance as the verification result if the number of mismatched elements is less than or equal to the predetermined value, and determines rejection as the verification result if the number of mismatched elements is over the predetermined value.

(Note 37)

A non-transitory computer-readable medium storing therein a program causing a computer of a matching apparatus to perform processing comprising

generating a random number, and transmitting encrypted data obtained by performing an operation of each of first values related to a first binary vector encrypted with an encryption key, and the random number, with each of the first values being kept in an encrypted state, or encrypted data obtained by encrypting the generated random number with the encryption key, to a matching request apparatus;

receiving, from the matching request apparatus, encrypted data obtained by an operation of each element of a matching target second binary vector and the encrypted data, with the encrypted data being kept in an encrypted state;

generating, based on a second value related to the first binary vector encrypted with the encryption key, the encrypted data transmitted from the matching request apparatus, and the random number, encrypted data or the encrypted data and auxiliary data, each thereof for use of verification of a mismatch degree between the second binary vector and the first binary vector, and transmits the generated data as a query to a verification apparatus; and

receiving a verification result from the verification apparatus that determines whether a count number of mismatched elements between the second binary vector and the first binary vector is less than or equal to a predetermined number, based on a decrypted value obtained by decrypting, with a decryption key, the encrypted data included in the query transmitted from the matching apparatus, or the decrypted value and the auxiliary data.

(Note 38)

A non-transitory computer-readable medium storing therein a program causing a computer of a matching apparatus to perform processing comprising

generating, in response to a matching request from a matching request apparatus, a random number, calculating second encrypted data by performing an operation of the random number and individual elements of first encrypted data obtained by encrypting first calculated values about individual elements of a first binary vector encrypted by using an encryption key by using the encryption key, and transmitting the second encrypted data to the matching request apparatus; and

receiving third encrypted data, which is a sum of values obtained by performing a scalar operation of individual elements of the second encrypted data and individual elements of a matching target second binary vector with the encrypted data being kept in an encrypted state from the matching request apparatus;

calculating sixth encrypted data about a distance between the first and second binary vectors by adding fourth encrypted data obtained by removing the random number from the third encrypted data transmitted from the matching request apparatus and fifth encrypted data obtained by encrypting a second calculated value about the individual elements of the first binary vector by using the encryption key without decrypting the fourth and fifth encrypted data and transmitting the sixth encrypted data to a verification apparatus as a query; and

receiving a verification result from the verification apparatus that outputs the verification result based on a comparison between a distance between the first and second binary vectors obtained by decrypting the sixth encrypted data in the query by using the decryption key and a predetermined threshold.

(Note 39)

A non-transitory computer-readable medium storing therein a program, causing a computer to performing processing comprising:

calculating, on reception of a matching request from a matching request apparatus, second encrypted data by performing an operation of a generated random number and first encrypted data obtained by encrypting first transformed values obtained by applying preset first transformation to a registration target first binary vector encrypted by using an encryption key by using the encryption key and transmitting the second encrypted data to the matching request apparatus;

receiving third encrypted data, which is a sum of encrypted data, which corresponds to results of multiplication of second transformed values obtained by applying preset second transformation to a matching target second binary vector by values obtained by operating the random number to the first transformed values, by performing an operation of the second transformed values and the second encrypted data from the matching request apparatus;

calculating sixth encrypted data about a distance between the first and second binary vectors by removing the random number from the third encrypted data transmitted from the matching request apparatus, calculating fourth encrypted data, which is a sum of values obtained by multiplying the first transformed values by the second transformed values, and adding fifth encrypted data obtained by encrypting a sum of individual elements of the first binary vector by using the encryption key to the fourth encrypted data with the encrypted data being kept in an encrypted state and transmitting the sixth encrypted data to a verification apparatus as a query; and

receiving a verification result from the verification apparatus that outputs the verification result based on a comparison between a distance between the first and second binary vectors obtained by decrypting the sixth encrypted data in the query by using the decryption key and a predetermined threshold.

(Note 40)

A non-transitory computer-readable medium storing therein a program causing a computer to perform processing comprising:

generating, on reception of a matching request from a matching request apparatus, first to third random numbers and transmitting first encrypted data obtained by encrypting the first random number with the encryption key to the matching request apparatus; and

receiving second encrypted data, which is a first operation result between first calculated values of individual elements of a matching target second binary vector and the encrypted data of the first random number from the matching request apparatus;

transmitting third encrypted data obtained by performing an operation of the second encrypted data transmitted from the matching request apparatus and the second random number, fourth encrypted data which is an operation result of encrypted data of first calculated values of individual elements of a registration target first binary vector and the third random number, and a hash value based on the generated first to third random numbers to a verification apparatus; and

receiving a verification result from the verification apparatus that decrypts the third and fourth encrypted data by using a decryption key, calculates hash values of values obtained by multiplying the decrypted values, determines whether a count number of mismatched elements between the hash values and the hash values transmitted from the matching apparatus is less than or equal to a predetermined value, determines acceptance as the verification result if the number of mismatched elements is less than or equal to the predetermined value, and determines rejection as the verification result if the number of mismatched elements is over the predetermined value.

(Note 41)

A non-transitory computer-readable medium storing therein a program causing a computer to perform processing comprising:

generating, on reception of a matching request from a matching request apparatus, first and second random numbers and transmitting first encrypted data obtained by encrypting the first random number with the encryption key to the matching request apparatus;

receiving second encrypted data, which is a first operation result between first calculated values of individual elements of a matching target second binary vector and the encrypted data of the first random number from the matching request apparatus;

transmitting the second encrypted data transmitted from the matching request apparatus, third encrypted data, which is an operation result of encrypted data of first calculated values of individual elements of a registration target first binary vector encrypted by using the encryption key and the second random number, and a hash value based on the generated first and second random numbers to a verification apparatus; and

receiving a verification result from the verification apparatus that decrypts the third encrypted data by using a decryption key, calculates hash values of the decrypted values, determines whether a count number of mismatched elements between the hash values and the hash values transmitted from the matching apparatus is less than or equal to a predetermined value, determines acceptance as the verification result if the number of mismatched elements is less than or equal to the predetermined value, and determines rejection as the verification result if the number of mismatched elements is over the predetermined value. 

1. A matching system, comprising: a matching apparatus that includes a first processor coupled with a memory storing program instructions executable by the first processor, wherein the first processor is configured to generate a random number, and transmits encrypted data obtained by performing an operation of first encrypted data of each of first values related to a first binary vector encrypted with an encryption key, and the random number, with each of the first values being kept in an encrypted state, or encrypted data obtained by encrypting the generated random number with the encryption key, as second encrypted data, to a matching request apparatus; the matching request apparatus that includes a second processor coupled with a memory storing program instructions executable by the second processor, wherein the second processor is configured to perform an operation of the second encrypted data transmitted from the matching apparatus and each element of a matching target second binary vector, with the second encrypted data being kept in an encrypted state to generate and transmit third encrypted data to the matching apparatus, wherein the first processor in the matching apparatus, based on fifth encrypted data of a second value related to the first binary vector encrypted with the encryption key, the third encrypted data transmitted from the matching request apparatus, and the random number, generates sixth encrypted data or the sixth encrypted data and auxiliary data, each thereof for use of verification of a mismatch degree between the second binary vector and the first binary vector, and transmits the generated data as a query to a verification apparatus; and the verification apparatus that includes a third processor coupled with a memory storing program instructions executable by the third processor, wherein the third processor is configured to determine whether a count number of mismatched elements between the second binary vector and the first binary vector is less than or equal to a predetermined number, based on a decrypted value obtained by decrypting, with a decryption key, the sixth encrypted data included in the query transmitted from the matching apparatus, or the decrypted value and the auxiliary data included in the query.
 2. (canceled)
 3. The matching system according to claim 1, wherein the first processor in the matching apparatus calculates, in response to a matching request from the matching request apparatus, calculates the second encrypted data obtained by operating the random number to each item of the first encrypted data obtained by encrypting with the encryption key, a first calculated value related to each element of the first binary vector and transmits the second encrypted data to the matching request apparatus, wherein the second processor in the matching request apparatus calculates the third encrypted data that is a sum of values obtained by performing a scalar operation of each element of the second binary vector for each item of the second encrypted data transmitted from the matching apparatus, with the each item of the second encrypted data being kept in an encrypted state, and transmits the third encrypted data to the matching apparatus, wherein the first processor in the matching apparatus adds fourth encrypted data obtained by removing the random number from the third encrypted data transmitted from the matching request apparatus and the fifth encrypted data obtained by encrypting with the encryption key a second calculated value related to each element of the first binary vector, with the fourth and fifth encrypted data being kept in an encrypted state, to calculate the sixth encrypted data of a distance between the first and second binary vectors and transmits the sixth encrypted data to the verification apparatus, and wherein the third processor in the verification apparatus outputs acceptance or rejection based on a comparison between a distance between the first and second binary vectors and a predetermined threshold, the distance between the first and second binary vector obtained by decrypting the sixth encrypted data with the decryption key.
 4. The matching system according to claim 3, comprising: a registration request apparatus that includes a fourth processor coupled with a memory storing program instructions executable by the fourth processor, wherein the fourth processor is configured to generate the first encrypted data by encrypting the first calculated value related to the first binary vector with encryption key, and the fifth encrypted data by encrypting the second calculated value related to individual elements of the first binary vector with the encryption key and transmits the first encrypted data and the fifth encrypted data to a storage apparatus; and the storage apparatus that includes a fifth processor coupled with a memory storing program instructions executable by the fifth processor, wherein the fifth processor is configured to receives the first encrypted data and the fifth encrypted data from the registration request apparatus, hold the first and fifth encrypted data as registered data in a storage, and supply the first and fifth encrypted data to the matching apparatus.
 5. The matching system according to claim 3, comprising: a registration request apparatus that includes a fourth processor coupled with a memory storing program instructions executable by the fourth processor, wherein the fourth processor is configured to transmits encrypted data obtained by encrypting each element of the first binary vector with the encryption key to a storage apparatus; and the storage apparatus that includes a fifth processor coupled with a memory storing program instructions executable by the fifth processor, wherein the fifth processor is configured to receives each item of the encrypted data of the each element of the first binary vector from the registration request apparatus, calculates the first encrypted data and the fifth encrypted data by calculating the first calculated values and the second calculated value, regarding the each element of the first binary vector, holds the first and fifth encrypted data as registered data in a storage, and supply the first and fifth encrypted data to the matching apparatus.
 6. The matching system according to claim 3, comprising: a registration request apparatus that includes a fourth processor coupled with a memory storing program instructions executable by the fourth processor, wherein the fourth processor is configured to encrypts the individual elements of the first binary vector by using an encryption key and transmits the encrypted data to a storage apparatus; and the storage apparatus that holds the encrypted data of each element of the first binary vector, wherein the first processor in the matching apparatus calculates the first and second calculated values regarding each element of the first binary vector as the first and fifth encrypted data with the encrypted data of each element of the first binary vector being kept in an encrypted state.
 7. The matching system according to claim 1, wherein, on reception of a matching request from the matching request apparatus, the first processor in the matching apparatus performs an operation of the random number and the first encrypted data obtained by encrypting, with the encryption key, first transformed values that are obtained by applying preset first transformation to the first binary vector to calculate the second encrypted data and transmits the second encrypted data to the matching request apparatus, wherein the second processor in the matching request apparatus performs an operation of each of second transformed values which are obtained by applying preset second transformation to the second binary vector and the second encrypted data transmitted from the matching apparatus to calculate encrypted data, each of which is a result of a multiplication of the second transformed value and a value which is obtained by operating the random number to the first transformed values, and transmits a sum of the encrypted data to the matching apparatus as the third encrypted data, wherein the first processor in the matching apparatus removes the random number from the third encrypted data transmitted from the matching request apparatus, calculates fourth encrypted data which is a sum of values obtained by multiplying the first transformed values by the second transformed values, and adds the fifth encrypted data obtained by encrypting a sum of each element of the first binary vector with the encryption key to the fourth encrypted data with the encrypted data being kept in an encrypted state to calculate the sixth encrypted data of a distance between the first and second binary vectors and transmits the sixth encrypted data to the verification apparatus, and wherein the third processor in the verification apparatus obtains a distance between the first and second binary vectors by decrypting the sixth encrypted data with the decryption key to output acceptance or rejection based on a comparison between the distance between the first and second binary vectors and a predetermined threshold.
 8. The matching system according to claim 7, comprising: a registration request apparatus that includes a fourth processor coupled with a memory storing program instructions executable by the fourth processor, wherein the fourth processor is configured to calculates the n first transformed values by applying the first transformation to the registration target n-dimensional first binary vector, generates the first encrypted data by encrypting the n first transformed values by using an encryption key, and transmits the first encrypted data and encrypted data of the individual elements of the registration target n-dimensional first binary vector to a storage apparatus; and the storage apparatus that includes a fifth processor coupled with a memory storing program instructions executable by the fifth processor, wherein the fifth processor is configured generates the fifth encrypted data by encrypting a sum of the elements of the first binary vector, holds the first and fifth encrypted data as registered data in a storage, and transmits the first and fifth encrypted data to the matching apparatus.
 9. The matching system according to claim 7, comprising: a registration request apparatus that includes a fourth processor coupled with a memory storing program instructions executable by the fourth processor, wherein the fourth processor is configured to transmits encrypted data of the individual elements of the registration target n-dimensional first binary vector to a storage apparatus; and the storage apparatus that includes a fifth processor coupled with a memory storing program instructions executable by the fifth processor, wherein the fifth processor is configured to calculate encrypted data of the n first transformed values by applying the first transformation to the first binary vector with the encrypted data of each element of the first binary vector being kept in an encrypted state, and generate fifth encrypted data by encrypting a sum of elements of the first binary vector and holds the first encrypted data of the n first transformed values and the fifth encrypted data obtained by encrypting a sum of elements of the first binary vector, wherein, on reception of a matching request from the matching request apparatus, the first processor in the matching apparatus obtains the encrypted data of the n first transformed values from the storage apparatus, generates a random number, calculates second encrypted data by operating the random number to individual items of the first encrypted data of the n first transformed values, and transmits the second encrypted data to the matching request apparatus, wherein the second processor in the matching request apparatus calculates the second transformed values by applying the second transformation to the second binary vector, performs an operation of each of the second transformed values and each of the second encrypted data received from the matching apparatus, obtains encrypted data by multiplying each of the second transformed values by each of values obtained by operating the random number to the first transformed values, and transmits third encrypted data of a sum of the encrypted data to the matching apparatus, and wherein the first processor in the matching apparatus calculates sixth encrypted data by removing the random number from the third encrypted data transmitted from the matching request apparatus, calculates the fourth encrypted data of a sum of values obtained by multiplying the first transformed values by the second transformed values, and adds the fourth encrypted data and the fifth encrypted data registered in the storage apparatus and transmits the sixth encrypted data to the verification apparatus.
 10. The matching system according to claim 7, wherein the first processor in the matching apparatus acquires, on reception of a matching request from the matching request apparatus, encrypted data of each element of the first binary vector and generates encrypted data of a sum of elements with the elements of the first binary vector being kept in an encrypted state; calculates first encrypted data of the n first transformed values by applying the first transformation to the first binary vector with the encrypted data of each element of the first binary vector being kept in an encrypted state, and generates fifth encrypted data by encrypting a sum of the elements of the first binary vector, wherein the first processor in the matching apparatus generates a random number, calculates the second encrypted data by operating the random number to individual items of the first encrypted data of the n first transformed values, and transmits the second encrypted data to the matching request apparatus, wherein the second processor in the matching request apparatus calculates the n second transformed values by applying the second transformation to the second binary vector, performs an operation of the individual second transformed values and the individual elements of the second encrypted data, obtains encrypted data by multiplying each of the second transformed values by each of values obtained by operating the random number to the first transformed values, and transmits third encrypted data of a sum of the encrypted data to the matching apparatus, and wherein the first processor in the matching apparatus removes the random number from the third encrypted data transmitted from the matching request apparatus, calculates fourth encrypted data of a sum of values obtained by multiplying the first transformed values by the second transformed values, calculates sixth encrypted data by adding the fourth encrypted data and the fifth encrypted data registered in the storage apparatus and transmits the sixth encrypted data to the verification apparatus.
 11. The matching system according to claim 7, wherein the first processor in the matching apparatus acquires, on reception of a matching request from the matching request apparatus, encrypted data of each element of the first binary vector, and generates fifth encrypted data by encrypting a sum of the elements of the first binary vector, generates a first group of transformation coefficients constituting the first transformation, and calculates the n first transformed values by applying the first transformation to the first binary vector, with the encrypted data of each element of the first binary vector being kept in an encrypted state, wherein the first processor in the matching apparatus generates a random number, calculates the second encrypted data by operating the random number to individual items of the first encrypted data of the n first transformed values, transmits the second encrypted data to the matching request apparatus, and transmits a second group of transformation coefficients constituting the second transformation used to generate the first group of transformation coefficients to the matching request apparatus, wherein the second processor in the matching request apparatus calculates the second transformed values by applying the second transformation defined by the second group of transformation coefficients from the matching apparatus to the second binary vector, performs an operation of each of the second transformed values and each of the second encrypted data received from the matching apparatus, obtains encrypted data by multiplying each of the second transformed values by each of values obtained by operating the random number to the first transformed values, and transmits third encrypted data of a sum of the obtained encrypted data to the matching apparatus, and wherein the first processor in the matching apparatus removes the random number from the third encrypted data transmitted from the matching request apparatus, obtains encrypted data of a sum of values obtained by multiplying the first transformed values by the second transformed values, calculates sixth encrypted data by adding the encrypted data of the sum and the fifth encrypted data, and transmits the sixth encrypted data to the verification apparatus.
 12. (canceled)
 13. The matching system according to claim 1, wherein, on reception of a matching request from the matching request apparatus, the first processor in the matching apparatus generates first to third random numbers and transmits first encrypted data obtained by encrypting the first random number with the encryption key to the matching request apparatus, wherein the second processor in the matching request apparatus calculates second encrypted data, which is a first operation result of a first calculated value of each element of a matching target second binary vector and the encrypted data of the first random number, and transmits the second encrypted data to the matching apparatus, wherein the second processor in the matching apparatus transmits third encrypted data obtained by performing an operation of the second encrypted data transmitted from the matching request apparatus and the second random number, fourth encrypted data which is an operation result of encrypted data of a first calculated value of each element of the first binary vector encrypted with the encryption key and the third random number, and a hash value based on the generated first to third random numbers to the verification apparatus, and wherein the third processor in the verification apparatus decrypts the third and fourth encrypted data transmitted from the matching apparatus with the decryption key, calculates hash values based on the decrypted values, determines whether a count number of mismatched elements between the hash values and the hash values transmitted from the matching apparatus is less than or equal to a predetermined value, determines acceptance if the number of mismatched elements is less than or equal to the predetermined value, and determines rejection if the number of mismatched elements is over the predetermined value.
 14. The matching system according to claim 1, wherein, on reception of a matching request from the matching request apparatus, the first processor in the matching apparatus generates first and second random numbers and transmits the second encrypted data obtained by encrypting the first random number with the encryption key to the matching request apparatus, wherein the second processor in the matching request apparatus calculates the third encrypted data, which is a first operation result of a first calculated value of each element of a matching target second binary vector and the second encrypted data of the first random number, and transmits the third encrypted data to the matching apparatus, wherein the first processor in the matching apparatus transmits the sixth encrypted data which is an operation result of the third encrypted data transmitted from the matching request apparatus, the first encrypted data of a first calculated value of each element of the first binary vector encrypted with the encryption key and the second random number, and hash values based on the generated first and second random numbers to the verification apparatus, and wherein the third processor in the verification apparatus decrypts the sixth encrypted data transmitted from the matching apparatus by using the decryption key, calculates hash values of the decrypted values, determines whether a count number of mismatched elements between the hash values and the hash values transmitted from the matching apparatus is less than or equal to a predetermined value, determines acceptance if the number of mismatched elements is less than or equal to the predetermined value, and determines rejection if the number of mismatched elements is over the predetermined value.
 15. (canceled)
 16. The matching system according to claim 13, comprising: a registration request apparatus that includes a fourth processor coupled with a memory storing program instructions executable by the fourth processor, wherein the fourth processor is configured to transmits encrypted data obtained by encrypting the first calculated values of the individual elements of the first binary vector by using the encryption key to the storage apparatus; and a storage apparatus that includes a fifth processor coupled with a memory storing program instructions executable by the fifth processor, wherein the fifth processor is configured to generate random numbers for the respective encrypted data of the first calculated values of individual elements of the first binary vector, generate hash values of the individual random numbers, and transmitting encrypted data obtained by operation of the respective random numbers to the respective encrypted data of the first calculated values and the hash values to the verification apparatus, wherein the third processor in the verification apparatus decrypts the individual encrypted data transmitted from the storage apparatus by using the decryption key, calculates hash values of the individual decrypted values, determines whether the individual hash values match the respective hash values transmitted from the storage apparatus, determines rejection if there is any mismatched hash value, and determines acceptance if all the individual hash values match the respective hash values transmitted from the storage apparatus, and wherein, if a verification result from the verification apparatus indicates acceptance, the storage apparatus holds the encrypted data of the first calculated values.
 17. A matching method, comprising: (a) by a matching apparatus, generating a random number and transmitting encrypted data obtained by performing an operation of first encrypted data of each of first values related to a first binary vector encrypted with an encryption key, and the random number, with each of the first values being kept in an encrypted state, or encrypted data obtained by encrypting the generated random number with the encryption key, as second encrypted data, to a matching request apparatus; (b) by the matching request apparatus, performing an operation of the second encrypted data transmitted from the matching apparatus and elements of a matching target second binary vector, with the second encrypted data being kept in an encrypted state to generate and transmitting third encrypted data to the matching apparatus; (c) by the matching apparatus, based on fifth encrypted data of a second value related to the first binary vector encrypted with the encryption key, the third encrypted data transmitted from the matching request apparatus, and the random number, generating sixth encrypted data or the sixth encrypted data and auxiliary data, each thereof for use of verification of a mismatch degree between the second binary vector and the first binary vector, and transmitting the generated data as a query to a verification apparatus; and (d) by the verification apparatus, determining whether a count number of mismatched elements between the second binary vector and the first binary vector is less than or equal to a predetermined number, based on a decrypted value obtained by decrypting, with a decryption key, the sixth encrypted data included in the query transmitted from the matching apparatus, or the decrypted value and the auxiliary data included in the query
 18. (canceled)
 19. The matching method according to claim 17, wherein, in the (a), the matching apparatus, in response to a matching request from the matching request apparatus, calculates the second encrypted data obtained by operating the random number to each item of the first encrypted data obtained by encrypting with the encryption key, a first calculated value related to each element of the first binary vector and transmits the second encrypted data to the matching request apparatus, wherein, in the (b), the matching request apparatus calculates the third encrypted data that is a sum of values obtained by performing a scalar operation of each element of the second binary vector for each item of the second encrypted data transmitted from the matching apparatus, with the each item of the second encrypted data being kept in an encrypted state, and transmits the third encrypted data to the matching apparatus, wherein, in the (c), the matching apparatus adds fourth encrypted data obtained by removing the random number from the third encrypted data transmitted from the matching request apparatus and the fifth encrypted data obtained by encrypting with the encryption key a second calculated value related to each element of the first binary vector, with the fourth and fifth encrypted data being kept in an encrypted state, to calculate the sixth encrypted data of a distance between the first and second binary vectors and transmits the sixth encrypted data to the verification apparatus, and wherein, in the (d), the verification apparatus outputs acceptance or rejection based on a comparison between a distance between the first and second binary vectors and a predetermined threshold, the distance between the first and second binary vector obtained by decrypting the sixth encrypted data with the decryption key. 20-22. (canceled)
 23. The matching method according to claim 17, wherein, in the (a), on reception of a matching request from the matching request apparatus, the matching apparatus performs an operation of the random number and the first encrypted data obtained by encrypting, with the encryption key, first transformed values that are obtained by applying preset first transformation to the first binary vector to calculate the second encrypted data and transmits the second encrypted data to the matching request apparatus, wherein, in the (b), the matching request apparatus performs an operation of each of second transformed values which are obtained by applying preset second transformation to the second binary vector and the second encrypted data transmitted from the matching apparatus to calculate encrypted data, each of which is a result of a multiplication of the second transformed value and a value which is obtained by operating the random number to the first transformed values, and transmits a sum of the encrypted data to the matching apparatus as the third encrypted data, wherein, in the (c), the matching apparatus removes the random number from the third encrypted data transmitted from the matching request apparatus, calculates fourth encrypted data which is a sum of values obtained by multiplying the first transformed values by the second transformed values, and adds the fifth encrypted data obtained by encrypting a sum of each element of the first binary vector with the encryption key to the fourth encrypted data with the encrypted data being kept in an encrypted state to calculate the sixth encrypted data of a distance between the first and second binary vectors and transmits the sixth encrypted data to the verification apparatus, and wherein, in the (d), the verification apparatus obtains a distance between the first and second binary vectors by decrypting the sixth encrypted data with the decryption key to output acceptance or rejection based on a comparison between the distance between the first and second binary vectors and a predetermined threshold. 24-28. (canceled)
 29. The matching method according to claim 17, wherein, in the (a), on reception of a matching request from the matching request apparatus, the matching apparatus generates first to third random numbers and transmits first encrypted data obtained by encrypting the first random number with the encryption key to the matching request apparatus, wherein, in the (b), the matching request apparatus calculates second encrypted data, which is a first operation result of a first calculated value of each element of a matching target second binary vector and the encrypted data of the first random number, and transmits the second encrypted data to the matching apparatus, wherein, in the (c), the matching apparatus transmits third encrypted data obtained by performing an operation of the second encrypted data transmitted from the matching request apparatus and the second random number, fourth encrypted data which is an operation result of encrypted data of a first calculated value of each element of the first binary vector encrypted with the encryption key and the third random number, and a hash value based on the generated first to third random numbers to the verification apparatus, and wherein, in the (d), the verification apparatus decrypts the third and fourth encrypted data transmitted from the matching apparatus with the decryption key, calculates hash values based on the decrypted values, determines whether a count number of mismatched elements between the hash values and the hash values transmitted from the matching apparatus is less than or equal to a predetermined value, determines acceptance if the number of mismatched elements is less than or equal to the predetermined value, and determines rejection if the number of mismatched elements is over the predetermined value.
 30. The matching method according to claim 17, wherein, in the (a), on reception of a matching request from the matching request apparatus, the matching apparatus generates first and second random numbers and transmits the second encrypted data obtained by encrypting the first random number with the encryption key to the matching request apparatus, wherein, in the (b), the matching request apparatus calculates the third encrypted data, which is a first operation result of a first calculated value of each element of a matching target second binary vector and the encrypted data of the first random number, and transmits the third encrypted data to the matching apparatus, wherein, in the (c), the matching apparatus transmits the sixth encrypted data which is an operation result of the third encrypted data transmitted from the matching request apparatus, the first encrypted data of a first calculated value of each element of the first binary vector encrypted with the encryption key and the second random number, and hash values based on the generated first and second random numbers to the verification apparatus, and wherein, in the (d), the verification apparatus decrypts the sixth encrypted data transmitted from the matching apparatus by using the decryption key, calculates hash values of the decrypted values, determines whether a count number of mismatched elements between the hash values and the hash values transmitted from the matching apparatus is less than or equal to a predetermined value, determines acceptance if the number of mismatched elements is less than or equal to the predetermined value, and determines rejection if the number of mismatched elements is over the predetermined value.
 31. The matching method according to claim 29, comprising, before the (a): (e) by a registration request apparatus, transmitting encrypted data obtained by encrypting the first calculated values of the individual elements of the first binary vector by using the encryption key to the storage apparatus; and (f) by a storage apparatus, generating random numbers for the respective encrypted data of the first calculated values of individual elements of the first binary vector; (g) by a storage apparatus, generating hash values of the individual random numbers; and (h) by a storage apparatus, transmitting encrypted data obtained by operation of each random number to the respective encrypted data of the first calculated values and the hash values to the verification apparatus; (i) by the verification apparatus, decrypting the individual encrypted data transmitted from the storage apparatus by using the decryption key, calculating hash values of the individual decrypted values, determines whether the individual hash values match the respective hash values transmitted from the storage apparatus, determining rejection if there is any mismatched hash value, and determining acceptance if all the individual hash values match the respective hash values transmitted from the storage apparatus; and (j) if a verification result from the verification apparatus indicates acceptance, holding, by the storage apparatus, the encrypted data of the first calculated values.
 32. (canceled)
 33. A non-transitory computer-readable medium storing therein a program causing a computer of a matching apparatus to perform processing comprising: generating a random number, and transmitting encrypted data obtained by performing an operation of first encrypted data of each of first values related to a first binary vector encrypted with an encryption key, and the random number, with each of the first values being kept in an encrypted state, or encrypted data obtained by encrypting the generated random number with the encryption key, as second encrypted data, to a matching request apparatus; receiving, from the matching request apparatus, third encrypted data obtained by an operation of each element of a matching target second binary vector and the second encrypted data, with the second encrypted data being kept in an encrypted state; generating, based on a second value related to the first binary vector encrypted with the encryption key, the third encrypted data transmitted from the matching request apparatus, and the random number, encrypted data or the encrypted data and auxiliary data, each thereof for use of verification of a mismatch degree between the second binary vector and the first binary vector, and transmits the generated data as a query to a verification apparatus; and receiving a verification result from the verification apparatus that determines whether a count number of mismatched elements between the second binary vector and the first binary vector is less than or equal to a predetermined number, based on a decrypted value obtained by decrypting, with a decryption key, the encrypted data included in the query transmitted from the matching apparatus, or the decrypted value and the auxiliary data. 